
June 14th, 2004, 08:25 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: eastern PA
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Can I recycle entries in <form> ?
I have setup a <form> section and now want to "resuse" the contents of the inputs in another form in same login.php file. I have prefilled out the form Items but want to use the items that user changed to if (s)he did. After user has Logged or Registered in "right" frame he/she can click on "mydata" to review and or update their personal data stored in mysql on my host box. The value of fnam doesn't appear to survive the forms existance. Are the some global variables or something that will work ?
<pre>
<form method="post" ACTION="logon.php" target="right" >
<p><b>
First Name: <input type="text" name=fnam size="10" maxlength="20" value="Roger" /><br />
Last Name: <input type="text" name=lnam size="10" maxlength="20" value="Dodger"/><br />
PACS ID: <input type="text" name="pacsid" size="4" maxlength="4" value="1234" /><br /></b>
ZIP Code: <input type="text" name="zip" size="5" maxlength="9" value="19101" /><br /></b>
<!-- <input type="hidden" name="logon" value=1> -->
<input type="submit" name="logon" onsubmit=fixit() value="LOGON / Register" /></p>
</form>
else where in manage.php I want to have another <form> that refers to $fnam $lnam etc and have last values from the form above ?
</pre>
|