Includes and forms
Posted: Tue Feb 17, 2004 11:07 am
Okay I have my index file ( index.php ) which loads up admin.php in it when clicked on a certain link. Now if I wanted to add to my database from admin.php ( loaded from index.php ) would I have to change the form action to index.php or admin.php. I tried setting the form action to admin.php but that doesnt work, neither does php_self
Or what. The variables that load admin.php are
?p=4&a=2 and this is what my form action looks like.
I also want to keep the result msg in index.php and not in a seperate window.
Or what. The variables that load admin.php are
?p=4&a=2 and this is what my form action looks like.
Code: Select all
<?php
"<form action="{$_SERVER['PHP_SELF']}"\n".
?>