php-n00b Posted November 3, 2009 Share Posted November 3, 2009 What's Up? OK, So im new to PHP and wondered is it possible to insert text into a html form field using PHP? Thanks Bye. Link to comment https://forums.phpfreaks.com/topic/180177-insert-text-into-form-filed/ Share on other sites More sharing options...
mikesta707 Posted November 3, 2009 Share Posted November 3, 2009 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 Link to comment https://forums.phpfreaks.com/topic/180177-insert-text-into-form-filed/#findComment-950467 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.