Jump to content

Insert text into form filed


php-n00b

Recommended Posts

you can echo the PHP in the value attribute of the text. For example

 

<input type="text" value="<?php echo $someVariable; ?>" />

 

Note the variable has to be defined before you do that. may seem obvious but a lot of people forgot about that part

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.