| Post |
|
New Member | grego3781 posts 2 6:09 pm August 31, 2009
| |
|
|
Please replace the ??? with your data!
- URL to the FORM: http://???
- The browser used: any
- cforms version: 11.0
- Your Wordpress version: 2.8.4
[desc]: Hello,
I'm using cforms on a site that features a bunch of different products. I would like to send along the product ID when folks submit a form from one of my product pages. I've currently assigned the product id to a variable:
<?php
$theProductID = "123456";
?>
How would add the "$theProductID" value to the subject line of the form before it is sent so that it appears in the subject line?
thanks
========
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:19 am September 2, 2009
| |
|
|
do the products link to the page with the form?
- if so, simply add the product ID to the URL link as a paramter:
URL?var1=123456
- then add a hidden form field, name it var1
- enabled custom Names/IDs for the form
if not, and "PHP" is your only option, you need to use the dynamic form feature and create your form on the fly, also
- using a hidden field, but assign the product ID via your code / form definition
once you have the hidden field with the data, simply reference it in your subject line via {var1}.
both methods have been described several times and in length in this forum, might also want to check the HELP! page.
|
|
|
|
|
Guest
| Marcelo 8:09 am September 4, 2009
| |
|
|
Hi Oliver
What if I have the following scenario:
- Users click on a link that has the following urL=http://www.domain.com/form?var1=1234
- I want "1234" to display in the first field of the form
Is this possible? If so could you kindly let me know how it should be done.
Here is one example: http://www.pampashosting.com.a…..tilla=3618
Kindly
Marcelo
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:11 am September 7, 2009
| |
|
|
Marcelo,I already described to you how to do it. Please also use the forum search…1.
|
|
|
|
|
Guest
| Marcelo 11:44 pm September 7, 2009
| |
|
|
Hi Oliver
I am little confused here. If you replied to me already could you be so kind as to point me where in the forum you replied?
Much apreciated.
Thank you
Marcelo
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:20 am September 9, 2009
| |
|
|
post #2 above
and in other posts to other similar user questions.
|
|
|
|