PDA

View Full Version : Form Problem - Please Help



Jeremy
07-18-2006, 10:52 PM
Hey!

Here is the HTML CODE that I used to put my form on my Contact (http://www.bwservices.ca/contact_en.html) page. If anyone is good with HTML and forms please tell me what is wrong with my HTML.

I want it to send to support@bwservices.ca and after lead to thank_en.php

<style>
body,td,legend {
color: black;
font-family: Arial;
font-size: 14px;
}
</style>
<form action="http://www.bwservices.ca/thank_en.php" method="post"><INPUT TYPE="HIDDEN" NAME="tlx_EmailTo" VALUE="support@bwservices.ca">
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q0">First Name</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q0_FirstName" id="q0">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q1">Last Name</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q1_LastName" id="q1">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q2">Address</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q2_Address" id="q2">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q3">City</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q3_City" id="q3">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q5">Country</label>
</td>
<td valign="bottom">
<select name="q5_Country" id="q5">
<option></option>
<option>Algeria</option>
<option>Angola</option>
<option>Antigua</option>
<option>Argentina</option>
<option>Aruba</option>
<option>Australia</option>
<option>Austria</option>
<option>Azerbaijan</option>
<option>Bahamas</option>
<option>Bahrain</option>
<option>Bangladesh</option>
<option>Barbados</option>
<option>Belgium</option>
<option>Benin</option>
<option>Bermuda</option>
<option>Bolivia</option>
<option>Bosnia & Herzegovina</option>
<option>Botswana</option>
<option>Brazil</option>
<option>Bulgaria</option>
<option>Burkina Faso</option>
<option>Cameroon</option>
<option>Canada</option>
<option>Caribbean</option>
<option>Caspian Region</option>
<option>Cayman Islands</option>
<option>Central African Republic</option>
<option>Central America</option>
<option>Chad</option>
<option>Channel Islands</option>
<option>Chile</option>
<option>China</option>
<option>Congo (Brazzaville)</option>
<option>Congo (Dem. Rep)</option>
<option>Costa Rica</option>
<option>Cote D'Ivoire</option>
<option>Croatia</option>
<option>Cyprus</option>
<option>Czech Republic</option>
<option>Denmark</option>
<option>Dominican Republic</option>
<option>Eastern Caribbean</option>
<option>Ecuador</option>
<option>Egypt</option>
<option>El Salvador</option>
<option>Equatorial Guinea</option>
<option>Estonia</option>
<option>Finland</option>
<option>France</option>
<option>Francophone Africa</option>
<option>Gabon</option>
<option>Gambia</option>
<option>Germany</option>
<option>Ghana</option>
<option>Gibraltar</option>
<option>Greece</option>
<option>Guatemala</option>
<option>Guernsey</option>
<option>Guinea</option>
<option>Honduras</option>
<option>Hong Kong</option>
<option>Hungary</option>
<option>Iceland</option>
<option>India</option>
<option>Indonesia</option>
<option>Interamericas</option>
<option>Iran</option>
<option>Isle Of Man</option>
<option>Israel</option>
<option>Italy</option>
<option>Jamaica</option>
<option>Japan</option>
<option>Jersey</option>
<option>Jordan</option>
<option>Kazakhstan</option>
<option>Kenya</option>
<option>Korea</option>
<option>Kuwait</option>
<option>Kyrgyzstan</option>
<option>Latvia</option>
<option>Lebanon</option>
<option>Lesotho</option>
<option>Libya</option>
<option>Lithuania</option>
<option>Luxembourg</option>
<option>Macedonia</option>
<option>Madagascar</option>
<option>Maghreb</option>
<option>Malawi</option>
<option>Malaysia</option>
<option>Mali</option>
<option>Malta</option>
<option>Mauritania</option>
<option>Mauritius</option>
<option>Mexico</option>
<option>Middle East Region</option>
<option>Moldova</option>
<option>Morocco</option>
<option>Mozambique</option>
<option>Namibia</option>
<option>Netherlands</option>
<option>Netherlands Antilles</option>
<option>New Caledonia</option>
<option>New Zealand</option>
<option>Nicaragua</option>
<option>Niger</option>
<option>Nigeria</option>
<option>Norway</option>
<option>Oman</option>
<option>Pakistan</option>
<option>Panama</option>
<option>Papua New Guinea</option>
<option>Paraguay</option>
<option>Peru</option>
<option>Philippines</option>
<option>Poland</option>
<option>Portugal</option>
<option>Qatar</option>
<option>Republic Of Ireland</option>
<option>Romania</option>
<option>Russia</option>
<option>Saudi Arabia</option>
<option>Senegal</option>
<option>Serbia and Montenegro</option>
<option>Singapore</option>
<option>Slovakia</option>
<option>Slovenia</option>
<option>South Africa</option>
<option>South & Central America</option>
<option>Spain</option>
<option>Sri Lanka</option>
<option>St. Lucia</option>
<option>Sweden</option>
<option>Switzerland</option>
<option>Taiwan</option>
<option>Tanzania</option>
<option>Thailand</option>
<option>Togo</option>
<option>Trinidad and Tobago</option>
<option>Tunisia</option>
<option>Turkey</option>
<option>Uganda</option>
<option>Ukraine</option>
<option>United Arab Emirates</option>
<option>United Kingdom</option>
<option>Uruguay</option>
<option>USA</option>
<option>Uzbekistan</option>
<option>Venezuela</option>
<option>West Bank & Gaza</option>
<option>Zambia</option>
<option>Zimbabwe</option>
</select>
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="top" >
<label for="q6">Your Message</label>
</td>
<td valign="bottom">
<textarea wrap="soft" cols="30" rows="3" name="q6_YourMessage" id="q6"></textarea>
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >
<label for="q8">Website</label>
</td>
<td valign="bottom">
<input type="text" size="20" name="q8_Website" id="q8">
</td>
</tr>
</table>
<table width="520" cellpadding="5" cellspacing="0">
<tr valign="bottom">
<td width="150" valign="bottom" >

</td>
<td valign="bottom">
<input type="submit" name="q7_" value="Submit">
</td>
</tr>
</table>
</form>

Andy128
07-19-2006, 12:11 AM
Hitting submit it takes one to the thank you page. What is not working?
If you are not getting the information to your e-mail then post the php script that you used.

Andy

Jeremy
07-19-2006, 06:51 AM
Hey!

I am not getting the e-mail to my inbox. I am not even using php I think.

navaldesign
07-19-2006, 07:46 AM
You have set the action of the form in ""http://www.bwservices.ca/thank_en.php"

This means that the form info is submited to this page. In this page, you should have, apart the visual part, a script in php that should process your info and send the mail in your inbox. If you don't have an script in there, you will never receive an email.

Jeremy
07-19-2006, 08:13 AM
Do you know what HTML / PHP script I should inbed in the thank_en.php page by any change George?

navaldesign
07-19-2006, 08:21 AM
php scipts may be of different kinds, depending on what they are required to do. I suggest that you take a look at Andy's tutorials on forms: the link is in his signature.

Jeremy
07-19-2006, 04:40 PM
This is the site I use to make my forms www.jotform.com/ (http://www.jotform.com/) It is a very useful tool but then I need to figure out what I type in my <form action> spot.

Andy128
07-19-2006, 04:53 PM
Jeremy-

Nice tool you have found there. It uses javascript to create the form which is fine, and then saves the form info at their website. To view your info- simply log in, choose your form and view reports. I created one in about 2 minutes and could view the results on their site.

Therefore- if you want to use their form, check with them on how it is done.

If you have created the form and then applied it to your website- then you will need to create a php script to process it. Check out the tutorials that were suggested above and adapt them to your need. Your action will coincide with the php script you write and where you put it.

Andy

Jeremy
07-19-2006, 05:05 PM
Alrighty. Thanks.

Andy128
07-19-2006, 05:46 PM
Jeremy,


Therefore- if you want to use their form, check with them on how it is done.


Please don't take the above as being harsh- I simply mean that they have a forum attached to their program that might help you out with the problems you are having.

Cheers,

Andy

Jeremy
07-19-2006, 08:49 PM
Not harsh feeling dude. I am just lazy - never reallly took time to look at their site, hehe

Jeremy
07-19-2006, 09:00 PM
Accually, I figured out that if you don't change the <form action> you can log on the www.jotform.com (http://www.jotform.com) and view the messages on there. So it's like an inbox but for forms.

So I will just keep it like that until then.