Help - Search - Members - Calendar
Full Version: Submit Form
HTMLHelp Forums > Web Authoring > General Web Design
dalan
<form action="myform.php" method="post" id="form">
<div class="container1 p1">
<div class="col-3">
<span class="txt1">Enter Your Name:</span>
<div class="h"><input type="text" /></div>
<span class="txt1">Enter Your E-mail:</span>
<div class="h"><input type="text" /></div>
<span class="txt1">Enter Your State:</span>
<div class="h"><input type="text" /></div>
</div>
<div class="col-4">
<span class="txt1">Enter Your Message:</span><br />
<textarea name="textarea" cols="30" rows="40"></textarea>
<br />
<div class="container"><em><b><a href="http://www.info@fisher-sales.com">submit</a>
</b></em></div>
</div>

<?php $email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "info@fisher-sales.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.fisher-controls.com/thankyou.html" );?>

<br class="clear" />
</div>
</form>
pandy
And your problem is...? unsure.gif
dalan
When I go to submit, nothing happens
Christian J
There is no submit button, just this link:

CODE
<a href="http://www.info@fisher-sales.com">submit</a>


See also http://htmlhelp.com/faq/html/all.html#form-howto
dalan
I am new to HTML and have worked with this form and I know I am making a mistake some where, for
it still does not send the email. If anyone could point out the error I would appreciate this.


<form action="" id="form">
<div class="container1 p1">
<div class="col-3">
<span class="txt1">Enter Your Name:</span>
<div class="h"><input type="text" /></div>
<span class="txt1">Enter Your E-mail:</span>
<div class="h"><input type="text" /></div>
<span class="txt1">Enter Your State:</span>
<div class="h"><input type="text" /></div>
</div><div class="col-4">
<span class="txt1">Enter Your Message:</span><br />
<textarea name="textarea" cols="30" rows="40"></textarea><br/><div class="container">
<em><b><a href="info@fisher-sales.com"><input type="submit" value="Send" /><br /></a>
</b></em></div></div><br class="clear" /></div>
</form>
pandy
Yes, the action is empty. Normally it should point to a script on the server that handles the form and for example sends the result to you by email. HTML can't do things like that, it's just provides the interface to the form. You can use mailto though (see the first link below), but apart from being unreliable, it doesn't really do anything more than open the user's default email client, if there is any, with a prefilled message with his default email address as the sender.

If you can't use a script, IMO it's better to use a service than to use mailto, if it isn't just for play and practice.

See more about forms here: http://htmlhelp.com/faq/html/forms.html#formstoc .
Form processor services: http://www.hotscripts.com/category/remotel...orm-processors/ .
Christian J
Merged two topics.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.