Ok so say i have my links
<a href="<? echo "$self?action=addnews" ?>">ADD NEWS</a><br />
<a href="<? echo "$self?action=modify" ?>">MODIFY NEWS</a><br />
<a href="<? echo "$self?action=delete" ?>">DELETE NEWS</a><br />
<a href="<? echo "$self?action=editban" ?>">EDIT/BANN USERS</a></div>
|
correct.
now i want it to load the actions
for news it would have without the php tags
<form action='$self?action=addnews' name='addnews' method='post'>
<table>
<tr>
<td>
Author
</td>
</tr>
<tr>
<td>
<input type='text' name='author'>
</td>
</tr>
<tr>
<td>
Title
</td>
</tr>
<tr>
<td>
<input type='text' name='title'>
</td>
</tr>
<tr>
<td>
News
</td>
</tr>
<tr>
<td>
<textarea cols='50' name='text' rows='20'></textarea>
</td>
</tr>
<tr>
<td>
<input type='submit' name='add_news' value='submit news topic'>
</td>
</tr>
</table>
</form>";
}
?> |
and so on with each link how would i load that from the link so say i wanted to edit the editban users and the page loads on it self what would i do to get it to load the info?
would i put it in a funtion called editban?
and then
use something like
| if(!isset($_POST['editban'])) |
??
im really confused on this. i just want it so that i dont have static pages for everything. and would like it all to intergrated into the adminl.php?action=
website url timelessagony.net/b3/test
i have created a testaccount with admin rights
username: testaccount
password: qwerty
Thanks
Johnny
Last edited on Sun Nov 11th, 2007 09:58 pm by jkewlo
|