URL Variables and forms
Posted: Wed Feb 18, 2004 6:57 pm
I have NO IDEA how to do this. Absolutely none. THe problem is that I use the url to determine which pages are going to be displayed.
My index.php has a set of variable checks which will load my admin.php withen itself if p=4 is in the url. Inside admin.php if a=3 is set this form is loaded up. So the page with the form is at index.php?p=4&a=3
Here is where to problem comes into play. The form action is set to itself (admin.php) How am I supposed to keep those variables set while have the action set to admin.php ( admin.php has checks too for information submitted in the form ) So the form is simply reloaded inside admin.php awhile admin.php is still in index.php while admin.php still does the checks after the form has been processed. :S sorry bit complicated.
If you need more clarification just ask
Ty
Edit - I tried changing the form action to this
but after the form is submitted is goes to index.php and all the form values.. ( not keeping the p=4&a=3& variables
My index.php has a set of variable checks which will load my admin.php withen itself if p=4 is in the url. Inside admin.php if a=3 is set this form is loaded up. So the page with the form is at index.php?p=4&a=3
Here is where to problem comes into play. The form action is set to itself (admin.php) How am I supposed to keep those variables set while have the action set to admin.php ( admin.php has checks too for information submitted in the form ) So the form is simply reloaded inside admin.php awhile admin.php is still in index.php while admin.php still does the checks after the form has been processed. :S sorry bit complicated.
If you need more clarification just ask
Ty
Edit - I tried changing the form action to this
Code: Select all
<?php
echo "</font><form action="index.php?p=4&a=3&"\n".
?>