Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
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:

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.
Reply


Messages In This Thread
askcopy syntax Not Working - by celextel - 2019-05-24, 01:54:40
RE: askcopy syntax Not Working - by celextel - 2019-05-28, 01:51:47
p01-contact : simply add contact forms in your pages - by antiquarium - 2011-11-03, 02:59:55



Users browsing this thread: 3 Guest(s)