# ---------- USER CONFIGURATION SECTION --------------- # Before this script will do anything useful, the following # variables must be set. # # MANDATORY VARIABLES # $mailprog - the location of your mail program and the parameters # to pass to it. #eg $mailprog = "/usr/lib/sendmail" ; # $mailto - email address where the feedback will be sent # eg, $mailto = 'email@example.com' ; # $subject - the subject line in the email sent by the feedback form # eg $subject = "Feedback Form" ; # # $formurl - the URL of your feedback form # eg $formurl = "http://www.example.com/feedback.html" ; # $thankyouurl - the URL of your thank you page # eg $thankyouurl = "http://www.example.com/thanks.html" ; # $errorurl - the URL of your error page # eg $errorurl = "http://www.example.com/error.html" ;
Msg#: 4181123 posted 2:47 pm on Aug 3, 2010 (gmt 0)
That's not the part of the perl script that does the mail sending. Look for "fullname" in the script and see wether you can figure out how to enter the phone in the email or post the lines surrounding that.
Msg#: 4181123 posted 7:39 pm on Aug 5, 2010 (gmt 0)
thanks have sorted that now... but now have another issue. The site i am creating has 3 or 4 different forms on it. The next one has a drop down box, that they have to select a country. How can I get this info to show on the email? i have put the line in
Msg#: 4181123 posted 9:27 pm on Aug 5, 2010 (gmt 0)
depending on how your script works, it might be enough to throw in <select name="country"> <option value="uk">UK</option> <option value="de">Germany</option> <option value="fr">France</option> </select>
You should look at (x)HTML if you want to do more fancy stuff on your form.
Msg#: 4181123 posted 9:42 pm on Aug 5, 2010 (gmt 0)
the code to include the selected value in the email goes into the perl file that handles the form. The value is sent the same way as a text-input would be, so just copy one of those that works and change the name.