Jump to content

updating a form


scmeeker

Recommended Posts

I'm wondering how to pull information from a current record back into the "input type" of a form.

 

For instance, if I had this input form and a user input their information, went to the next page where it was displayed for their approval but then realized they put in the wrong information and wanted to go back to edit it.  I want the form to look the same but with their information in this "input type".  I can do it with a "text area" box but I'm having trouble with the "input type".  Any suggestions on how to incorporate the PHP code with this?

 

<input type="text" name="price" size="40"/>

 

This is how I did it with a "text area" box:

 

<textarea name="payment" rows=10 cols=90><?php echo $display_block = "$item_price" ?></textarea>

 

Link to comment
https://forums.phpfreaks.com/topic/206792-updating-a-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.