Jedi
(regular)
Fri Jan 19 2007 07:44 PM
Contact Form Not Working

Can someone please let me know why the contact form I have put together doesnt work? It all looks nice but nothing happens when you press submit.

<FORM METHOD="POST" ACTION="mailto:myemailaddress">
<INPUT TYPE="text" Name="name" SIZE="30">
<INPUT TYPE="text" Email="name" SIZE="30">
<TEXTAREA NAME="Comment" ROWS=6 COLS=40>
</TEXTAREA>
<INPUT TYPE="Submit">
<INPUT TYPE="Reset">
</FORM>


emailuser
(regular)
Fri Jan 19 2007 11:31 PM
Re: Contact Form Not Working

<input type="submit" name="Submit" value="CLICK HERE">

Doubt if this will solve your problem though .

Either way , Arnt you also supposed to have another webpage it takes you to after you click on the form button that says summit like 'your submission has been sent' or whatever .


Jedi
(regular)
Sat Jan 20 2007 12:48 PM
Re: Contact Form Not Working

Thanks for your reply. Im not too sure how to do the 'email sent page', can you help?

emailuser
(regular)
Sat Jan 20 2007 06:14 PM
Re: Contact Form Not Working

I can only do forms using php and i assume your using free isp webspace or summit that doesnt have php - so cant help you .

You could try a goggle search for the old freeserve web authoring newsgroups as questions about forms was often asked .


Nanook
(regular)
Sat Jan 20 2007 06:54 PM
Re: Contact Form Not Working

Do you have PHP support on your server?
If you are using your free ISP space then it is doubtful but if you are not it is possible in which case I can help you make your form send a submission on another page rather than "mailto"


Jedi
(regular)
Sat Jan 20 2007 09:50 PM
Re: Contact Form Not Working

Yes, I am sure Ive got PHP support, my website is hosted with oneandone.co.uk Any help would be great, thanks

Whizwrinkly
(regular)
Sat Jan 20 2007 10:55 PM
Re: Contact Form Not Working

Yes, 1&1 does have PHP support. You will be better off using that, as your email address will be server side so it's more secure (as long as you use a bad-strings list to check against input strings).

emailuser
(regular)
Sat Jan 20 2007 11:49 PM
Re: Contact Form Not Working

If you have php then thats good - but you also need some sort of method to prevent the spammer bots from using - and usually thats in the form of a image code .

You also need to prevent the spammers from doing something called email injection .

Unfortunatly i dont have the available time needed for detailed replys at the moment and while i'm happy to point you in the right direction i cant do the technical support thingy at the moment .


takeaway_checkout.php

clicking on submit would take you to takeaway_checkout_do.php


<?php
$uzi="WebUser";
?>

<table border="0" cellspacing="1" cellpadding="0" align="center">

<form action="takeaway_checkout_do.php" method="post">

<tr>
<td class="ta_contact_gen_1"><b>5 DIGIT ANTI SPAM BOT CODE</b></td>
<td class="ta_contact_gen_2"><img src="images/arrow_right.gif" width="11" height="9" border="0"></td>
<td><input type="text" name="abby" size="46" class="ta_contact_gen_3"></td>
</tr>

<tr>
<td></td>
<td></td>
<td><input type="submit" name="Submit" value="SUBMIT" class="ta_form_button"></td>
</tr>

<input type="hidden" name="user" value="<?php print $uzi; ?>">

</form>

</table>



On the next page you would have summit like the following .

<?php

$demo=$_POST['abby'];

$blah=$_POST['user'];

print "demo = $demo <br>";

print "blah = $blah <br>";

?>


Forget about sending stuff via email for the moment - learn how to use forms and learn how to pass and grab varibles .

Most people want to run before learning how to walk and are only interested in instant results - are you one of those people ? .


Nanook
(regular)
Tue Jan 23 2007 05:00 PM
Re: Contact Form Not Working

Right as you have PHP this will be a lot easier for you, and will also prevent against spamming of your email address.

I see no reason to tell you here how to do it when there are plently of well written sites already showing it so instead I will link you to the best I have found

http://www.kirupa.com/web/php_contact_form.htm
http://www.thesitewizard.com/archive/feedbackphp.shtml

I think the first link is the best.
If you have any problems I'll be happy to help


Contact Us | Privacy statement Main website
Hitwise Top 10 Award Winner - Jan-Mar 2005

About us | Contact us | Link to us | Terms & Conditions | Privacy Policy
© Copyright IPC Media Limited, All rights reserved