Jump to content

PHP method to input text into an input box


Perad

Recommended Posts

Retrieve the specific data from your database and display it using the appropriate form type as shown below.  It will show up with any browser.

[code]<input type="text" name="something" value="<?php echo $something;?>"/>[/code]

[code]<textarea rows="5" cols="30" name="something"><?php echo $something;?></textarea>[/code]

After the user changes the displayed data and submits the form, read the new value of 'something' and UPDATE the appropriate row of your database table.

Without seeing any of your code, it's difficult to be more specific about solving your problem.

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.