janharders

msg:4181189 | 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.
|
stevebmth

msg:4182714 | 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 <td><input type="text" id="tswCountry" name="Country" size="25" /></td> But it doesnt seem to show anything that they have selected, ie England, Wales, Germany, Scotland etc... Sure I have it wrong somewhere ! Any help is appreciated Steve
|
janharders

msg:4182720 | 7:48 pm on Aug 5, 2010 (gmt 0) |
That's an input-field, a drop down would be a <select>-element. Have you added that to your form?
|
stevebmth

msg:4182757 | 8:45 pm on Aug 5, 2010 (gmt 0) |
no -where would that go, or what would the code be for that?
|
janharders

msg:4182780 | 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.
|
stevebmth

msg:4182784 | 9:33 pm on Aug 5, 2010 (gmt 0) |
Yeah, I already have this in the form... I just cant seem to get it to send the selection through the formmail script... I dont know what the code will be either in the .pl or if it goes in the HTML <td><font face="Verdana"><font size="2"><strong><label for="tswcountry">Country</label> </strong></font></font></td> <td><select name="Country"> <option value="England" selected="selected">England</option> <option value="Northern Ireland">Northern Ireland</option> <option value="Scotland">Scotland</option> <option value="Wales">Wales</option> <option value="Republic of Ireland">Republic of Ireland</option> <option value="Netherlands">Netherlands</option> <option value="Germany">Germany</option> </select><br /> </td> Regards Steve
|
janharders

msg:4182787 | 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.
|
|