Is there any way to use php variables in the value part of a text field?
What I'm trying to accomplish is to have a contact form but the Subject will be pre-supplied with an item title and product number from a mysql database. I can pass those values into a variable, but the variables are just printed out as text in the field.
my tag structure is: name!, email!, phone, subject!=$title - $itemid, message!
ideally i want my Subject input field to look like this:
such that the values of those variables show in the field on the page, instead of the variables themselves.
What I'm trying to accomplish is to have a contact form but the Subject will be pre-supplied with an item title and product number from a mysql database. I can pass those values into a variable, but the variables are just printed out as text in the field.
my tag structure is: name!, email!, phone, subject!=$title - $itemid, message!
ideally i want my Subject input field to look like this:
Code:
<input type="text" value="$title - $itemid" name="p01-contact_fields[4]" id="p01-contact1_field4">
such that the values of those variables show in the field on the page, instead of the variables themselves.