Parameters |
Site Admin
|
in php your call would look different )
<form name='login' action='<?php echo $_SERVER[PHP_SELF];?>' method='POST'> or <form name='login' action='<?=$_SERVER[PHP_SELF];?>' method='POST'> 2. agree, parameters are not preserved, yet. It's an issue for the further development. |
||||||||||||
|
parameters |
|
Sorry for the confusion on point 1, maybe I didn't make myself clear. I wasn't having a problem getting the above code to work. I realize the code has to be wrapped with the php tag somewhere (ie here document). I just threw the code there to show that if a page uses parameters and it then calls itself on a form submit then the parameters do not get passed on subsequent calls.
Thanks, Zany Dog |
||||||||||||
|
Site Admin
|
They would never be passed the way you expect.
You have to include them in the <form> or have a php session opened. in more details if you have some values (regardless parameters or not) and you want them to be submitted to a script (regardless the same or not) you have to add them into the form you are submitting. You can use <input type="hidden" name="myvariablename" value="myvariablevalue"> for that purpose. As an alternative way you can store your values in $_SESSION[] array and expect them to be stored (for specified time) in file for later usage. So you can assign for example $_SESSION['myvariablename']="myvariablevalue"; in one script and expect $_SESSION['myvariablename'] to be set with the same value in the script you do submit to. See php manual for further details how it works. |
||||||||||||
|
Parameters |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by