Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 
Seen This Blog


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
Jedi
regular


Reg'd: Sat
Posts: 1192
Contact Form Not Working
      #327485 - Fri Jan 19 2007 07:44 PM

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>

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
emailuser
regular


Reg'd: Wed
Posts: 190
Re: Contact Form Not Working [Re: Jedi]
      #327543 - Fri Jan 19 2007 11:31 PM

<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 .


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jedi
regular


Reg'd: Sat
Posts: 1192
Re: Contact Form Not Working [Re: emailuser]
      #327631 - Sat Jan 20 2007 12:48 PM

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

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
emailuser
regular


Reg'd: Wed
Posts: 190
Re: Contact Form Not Working [Re: Jedi]
      #327705 - Sat Jan 20 2007 06:14 PM

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 .


Post Extras: Print Post   Remind Me!   Notify Moderator  
NanookModerator
regular


Reg'd: Tue
Posts: 995
Loc: South East England
Re: Contact Form Not Working [Re: emailuser]
      #327711 - Sat Jan 20 2007 06:54 PM

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"

--------------------

Adventures in Oz


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jedi
regular


Reg'd: Sat
Posts: 1192
Re: Contact Form Not Working [Re: Nanook]
      #327743 - Sat Jan 20 2007 09:50 PM

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

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
Whizwrinkly
regular


Reg'd: Thu
Posts: 476
Loc: East London, England
Re: Contact Form Not Working [Re: Jedi]
      #327755 - Sat Jan 20 2007 10:55 PM

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).

Post Extras: Print Post   Remind Me!   Notify Moderator  
emailuser
regular


Reg'd: Wed
Posts: 190
Re: Contact Form Not Working [Re: Whizwrinkly]
      #327763 - Sat Jan 20 2007 11:49 PM

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 ? .


Post Extras: Print Post   Remind Me!   Notify Moderator  
NanookModerator
regular


Reg'd: Tue
Posts: 995
Loc: South East England
Re: Contact Form Not Working [Re: emailuser]
      #328276 - Tue Jan 23 2007 05:00 PM

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

--------------------

Adventures in Oz


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 3 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website