I need someone smart with PHP that can show me the way.
I created a simple HTML form in the detail.html template. I have a text field that says:
<input name="username" type="text" id="username">
Is there a way to prefill a HTML form text field with a php variable (I hope I'm using the right terms). In this case, 4images variable is "image_name".
In other words, I'm trying to use the image_name variable to prefill a text field. The form is an html form. Right now the user has to type in the username, but it would be nice if this could be prefilled.
I just don't know how to use php with html to make this happen. I did a google search and found this:
<td colspan="2"><input type="text" name="username" value="<?=$_POST['image_name']?>" id="username">*</td>
But it didn't work. The person still had to type in the image_name (for our members they call this username).
Any help would be appreciated.
thanks
steve