Thread: Submit Buttons [in forms]
Results 1 to 15 of 28
Related
-
CSS Buttons and the Submit Forum: CSS Forum
Replies: 5 -
Multiple Submit buttons Forum: HTML Forum
Replies: 3 -
Submit / Reset / Browse Buttons Forum: CSS Forum
Replies: 1 -
multiple submit buttons in single form Forum: HTML Forum
Replies: 7 -
Images with submit buttons Forum: HTML Forum
Replies: 1
-
11-09-2003, 05:57 PM #1
Submit Buttons [in forms]
Okay, I am making a simple website and I have a form all made up and everything. The only thing I can not figure out is how to make the submit button mail the form contents to me. I have the button but when you click it nothing happens. Please help me out.
-
11-10-2003, 07:20 AM #2
You'll need to post some code or a link to the site. (It's kinda hard to troubleshoot without seeing what you have now......)
-
11-10-2003, 07:57 AM #3
What form processor did you choose? CGI, ASP, PHP - or are you using the mailto: command?
-
11-10-2003, 07:25 PM #4
Here is a sample of what I am trying to do as my site is not online yet:
<html>
<head>
<title>Sample of Form</title>
</head>
<body>
<h1 align=center>Test Form</h1>
<hr width="20%" align="center">
Spot 1
<br>
<textarea name="company" cols="25" rows="5" id="1"></textarea>
<br>
<br>
Spot 2
<br>
<textarea name="company" cols="25" rows="5" id="2"></textarea>
<br>
<br>
Spot 3
<br>
<input type="text" name="3" size="25">
<br>
<br>
Spot 4
<br>
<input type="text" name="4" size="25">
<br>
<br>
Spot 5
<br>
<input type="text" name="5" size="25">
<br>
<br>
Spot 6
<br>
<input type="text" name="6" size="25">
<br>
<br>
Spot 7
<br>
<input type="text" name="7" size="25">
<p align="center"><input type="submit" name="Submit" value="Submit"></p>
-
11-10-2003, 08:23 PM #5
Well you have no form tags. Check with whatever hosting company to see what they support, formmail, ASP, PHP, etc
-
11-11-2003, 12:23 AM #6
I know I am doing this all wrong and I *think* it is clear what I am trying to do, so can someone please make me a sample. I would greatly appreciate it.
-
11-11-2003, 06:11 AM #7
Heres a sample I wrote a while ago -
http://www.ahfb2000.com/webmaster_he...=3166#post3166If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-11-2003, 09:15 AM #8
too hard
Last edited by ZIonsWrath; 11-11-2003 at 11:12 AM.
-
11-11-2003, 09:18 AM #9
Why dont you start with the forms tutorial , and work up from there?
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-11-2003, 11:13 AM #10
Okay i think i understand this but here is what I need help with
<form action="mailer.php" method="post">
that line...
In the action what do I put to get it to just email all the stuff to an email address of mine?
I tried doing the mailto: tag but it opens a new mail message but the contents I entered on the page do not appear in the body.Last edited by ZIonsWrath; 11-11-2003 at 11:15 AM.
-
11-11-2003, 11:15 AM #11
Hi,
Edit mailer.php , find -
PHP Code:$recipient = "dean@somepeople.net";
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-11-2003, 12:32 PM #12
okay i put the mailer.php in the action part, made a new document, put that 1 line of code saved it as mailer.php and i get this error message
Method Not Allowed
The requested method POST is not allowed for the URL /zionswrath/wdb/Weapons Database/mailer.php.
Apache/1.3.27 Server at homepage.mac.com Port 81
Obviously I did something wrong, but what?
[I put the site online temporarily so I could test it because browsing it on my computer it would just show me the folder that contained the php file]
-
11-11-2003, 01:07 PM #13
to start with, mailer.php should be the entire script detailed in the post I linked to. You just amend that script to send to your email. On its own, that line wont do anything.
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-11-2003, 07:38 PM #14
Okay I did that and i still ge the same error:
Method Not Allowed
The requested method POST is not allowed for the URL /zionswrath/wdb/Weapons Database/mailer.php.
Apache/1.3.27 Server at homepage.mac.com Port 81
Here is the mailer.php script I am using:
<?
// Filename: mailer.php
// Generic Emailer
// Default Settings
$redirect = "My_thank_you_page.html";
// First, detects whether info is received via form -
$recipient = "zionswrath@mac.com";
$subject = "Advertising on WDB";
$from = "From: My Website Emailer";
$email = "
";
$data = $HTTP_POST_VARS;
foreach($data as $k => $v) {
$k = stripcslashes($k);
$v = stripcslashes($v);
$email .= "\n$k : $v";
}
mail($recipient, $subject, $email, $from);
header("Location: $redirect");
?>
The problem seems to be not in the script but in the form tag. For the "method" tag I have "post" which gives me the error message above and when I put send it makes me download the actual mailer.php
Sorry for not undertstanding how to do this and troubling you =[
-
11-11-2003, 07:57 PM #15
This is not your fault, by the look of it.
this seems to be a problem with your host, it does not allow the HTTP method POST, or the fact that it is a |PHP script. Does your host allow php?If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?