Page 1 of 1

display a query in the form that was used ti enter the data

Posted: Mon Jun 04, 2007 12:52 am
by phpDVWeaver
I have a website where the user should enter info regarding student in an html form. once this form is validated the data is saved in a MySql database.

I am trying to give the user the possibility to update his rcords. Meaning Once the user logon, and the logon is right, a Mysql query is executed to select all the info.

I want to display the data from that query in the same html form that was used to enter the data at the beginning.

thanks

Posted: Mon Jun 04, 2007 1:16 am
by Kieran Huggins

Code: Select all

<input type="text" name="studentName" value="<?php echo $studentName;?>">

Posted: Mon Jun 04, 2007 7:45 am
by feyd
Duplicate thread.

viewtopic.php?t=68596