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

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Locked
phpDVWeaver
Forum Commoner
Posts: 28
Joined: Sun Apr 29, 2007 11:00 pm

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

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Code: Select all

<input type="text" name="studentName" value="<?php echo $studentName;?>">
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Duplicate thread.

viewtopic.php?t=68596
Locked