<form></form> not sending? *RESOLVED*

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sun Oct 01, 2006 6:52 am    Post subject: <form></form> not sending? *RESOLVED* Reply with quote

I plan to set up hosting for my site and allow users to sign up, i have created an HTML page with the sign up fields (the <form></form> area is listed below) the only problem im having is after testing it i check my e-mails BUT i never recieve them, i dont know what i am doing wrong so if someone can proof read the code and check for errors and tell me why it dosent work i would be very greatful :D ALSO how do i make fields required i believe it has something to do with "NULL" but thats all i know :/


Code:

<form>
First name: <INPUT type="text" name="firstname"><BR>
Last name: <INPUT type="text" name="lastname"><BR>
email: <INPUT type="text" name="email"><BR>
Address: <input type="text" name="address"><br>
City: <input type="text" name="city"><br>
State: <input type="text" name="state"><br>
Zip code: <input type="text" name="zip"><br>
Site name: <INPUT type="text" name="Site name"><br>
Password: <input type="password" Name="password"><br>
Password: (again) <input type="password" Name="password2"></br>
<label for="checkbox2">I agree to the <a href="http://www.chat-hctech.co.nr/hosting/AUP.html" target="blank"><u><b>Acceptable Use Policy.</b></u></a></label>
<input id="checkbox2" type="checkbox" value="2" name="check-input"></input><br>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</form>

_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P


Last edited by hc2995 on Wed Oct 04, 2006 12:39 am; edited 1 time in total
Back to top View user's profile Send private message AIM Address
Ralph
-


Joined: 17 Sep 2006
Posts: 87

PostPosted: Sun Oct 01, 2006 7:24 am    Post subject: Reply with quote

You need to incorporate the mailto tag.

<a href="mailto: put email address here”>Text that will show here</a>

Also it is a good idea to give your html pages an opening tag and a title. I am not sure if that is your hole page or not but, I see no closing html tag.

Something like this:

<html>
<head>
<title>Submit Form Page</title>
</head>
<form>

All your form contents would go here.


</form>
</html>
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sun Oct 01, 2006 7:52 am    Post subject: Reply with quote

nope this isnt my entire page this is just the form part of it :D ill post the entire if that helps

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sign-up</title>
<link rel="stylesheet" type="text/css" href="http://69.139.233.82/server stuff/images/images188/teal_b.css">
</head>
<body>
<div class="wrapper">
<div class="title titlemargin">Account Sign-up</div>
<div class="left" style="font-weight: bold; margin: 5px; height: 100%; width: 150px;" align="center">
<div class="sidebaritem first"><a href="http://www.chat-hctech.co.nr/hosting/">Home</a></div>
<div class="sidebaritem"><a href="http://www.chat-hctech.co.nr/hosting/AUP.html">Acceptable Use Policy</a></div>
<div class="sidebaritem"><a href="http://www.chat-hctech.co.nr/hosting/signup.htm">Sign up for an account</a></div>
<div class="sidebaritem"><a href="http://www.chat-hctech.co.nr/hosting/support/">Support</a></div>
<div class="sidebaritem"><a href="http://www.chat-hctech.co.nr/hosting/zpanel/">Access your account</a></div>
</div>
<div class="border content padleft" style="padding-right: 20px;">
<p class="title2">Sign-up for an account!</p>
<FORM action="mailto:chat-hctech@comcast.net" method="post">
<P>
First name: <INPUT type="text" name="firstname"><BR>
Last name: <INPUT type="text" name="lastname"><BR>
email: <INPUT type="text" name="email"><BR>
Address: <input type="text" name="address"><br>
City: <input type="text" name="city"><br>
State: <input type="text" name="state"><br>
Zip code: <input type="text" name="zip"><br>
Site name: <INPUT type="text" name="Site name"><br>
Password: <input type="password" Name="password"><br>
Password: (again) <input type="password" Name="password2"></br>
<label for="checkbox2">I agree to the <a href="http://www.chat-hctech.co.nr/hosting/AUP.html" target="blank"><u><b>Acceptable Use Policy.</b></u></a></label>
<input id="checkbox2" type="checkbox" value="2" name="check-input"></input><br>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</P>
</FORM>
</div>
<br style="clear: both;" />
<div class="border footer">This page is copyright 2006<a href="http://www.chat-hctech.co.nr/hosting/">www.chat-hctech.co.nr/hosting</a> aLL RIGHTS RESERVERED!</div>
</div>
</body>
</html>

_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
Ralph
-


Joined: 17 Sep 2006
Posts: 87

PostPosted: Sun Oct 01, 2006 8:59 am    Post subject: Reply with quote

Hello again,

I found a JavaScript that does verification on the fields. Although it appears that you’re using CSS, so, I am not sure how it will work in your form.

Put this in the head section:

<SCRIPT LANGUAGE="JavaScript">
<!--

function submitted() {
alert("Information submitted!")
}

function verify() { if
(document.info.elements[5].value == ""){
alert("Please complete each field.") } else { submitted() } }
//-->
</SCRIPT>


Put this in the submit button section and it will pop up a window if the form is not complete.

<INPUT TYPE="BUTTON" VALUE="Send now!" onClick="verify()">

Make sure to name your form with this tag to make the script work:

<FORM NAME="info"></FORM>


R
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sun Oct 01, 2006 4:48 pm    Post subject: Reply with quote

ok the javascript code works but what about me not getting the e-mail? Come to think of it are there any programs that allow you to set up forms and put them on your site, like a php page?
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Oct 01, 2006 5:05 pm    Post subject: Reply with quote

The best way is to make it submit to a server side form to sent the e-mail. Using mailto: makes the person sending the mail use their default mail client like Outlook. If you use a server side script to send the mail it will always work providing the server side script is working.

Use the php mail() function.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Sun Oct 01, 2006 5:28 pm    Post subject: Reply with quote

PHP's mail() function must be set up to use. Check the link at php.net for the syntax and proper commands.

Are you running a mail server? If not, you setup your php.ini file to handle mail transfers.

PHP.ini
Quote:
[mail function]
; For Win32 only.
SMTP = localhost ; set this line to your ISP's email server, but they may not allow this
smtp_port = 25

; For Win32 only.
sendmail_from = me@example.com


If you have a mail server, just keep SMTP = localhost and change the sendmail_from field.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sun Oct 01, 2006 5:44 pm    Post subject: Reply with quote

I cannot run a mail server comcast blocks port 25 :/ BUT they do allow unlimited smtp server use for customers so iv just be using SMTP.comcast.net and my primary e-mail account, ill look into the mail() function for php though :D
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
bprsk8r4272
-


Joined: 07 Mar 2006
Posts: 124
Location: Rochester, NY

PostPosted: Sun Oct 01, 2006 5:57 pm    Post subject: Reply with quote

get "forms to go" google search for it thats what i use
_________________
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Mon Oct 02, 2006 1:57 am    Post subject: Reply with quote

well im goina try to make a .php script for sending the form but i dont know how to use the mail() funtion heres the syntax i made:

<?php
$to = 'hc2995@comcast.net';
$subject = 'Form Proccessor';
$from = 'hc2995@comcast.net';
$body = ''
mail($to, $subject,$from,$body);
?>

ok iv tested the script i get no errors and i DO get the e-mails BUT theres nothing in the the body exceot "hc2995@comcast.net" i have added "$body = '' " but how do i make it send the contents of the form on the previous page :/ if someone could help thnx :D
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Oct 02, 2006 3:17 am    Post subject: Reply with quote

Body needs to be using the POST method. Add this:

Code:
<?php
$to = 'hc2995@comcast.net';
$subject = 'Form Proccessor';
$from = 'hc2995@comcast.net';
$body = $_POST['body'];
mail($to, $subject,$from,$body);
?>
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Mon Oct 02, 2006 5:49 am    Post subject: Reply with quote

ok heres what the entire page looks like tell me if its correct :D

EDIT: i took out the "$from" tag BUT i still can see what the user puts in each field the body part is still blank in the message i get :/ everyting else works :D

sendform.php:

Code:

<html>
<head>
<title>Form recieved!</title>
<?php
$to = 'hc2995@comcast.net';
$subject = 'Form Proccessor';
$body = $_POST['body'];
mail($to, $subject,$body);
?>
</head>
<body>
<p>Your form has been recieved and will undergo review you will recieve a response within 24 hours to the e-mail you supplied</p>
</body>
</html>


The signup page:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sign up for an account!</title>
<link rel="stylesheet" type="text/css" href="http://69.139.233.82/server stuff/images/images188/teal_b.css">
</head>
<body>
<div class="wrapper">
<div class="title titlemargin">Sign up for an account!</div>
<div class="left" style="font-weight: bold; margin: 5px; height: 100%; width: 150px;" align="center">
<div class="sidebaritem first"><a href="http://www.chat-hctech.co.nr/hosting/">Back to home</a></div>
</div>
<div class="border content padleft" style="padding-right: 20px;">
<p class="title2">Please fill in the form below:</p>
<form action="http://www.chat-hctech.co.nr/hosting/sendform.php" method="post">
First name: <INPUT type="text" name="firstname"><BR>
Last name: <INPUT type="text" name="lastname"><BR>
email: <INPUT type="text" name="email"><BR>
Address: <input type="text" name="address"><br>
City: <input type="text" name="city"><br>
State: <input type="text" name="state"><br>
Zip code: <input type="text" name="zip"><br>
Site name: <INPUT type="text" name="Site name"><br>
Password: <input type="password" Name="password"><br>
Password: (again) <input type="password" Name="password2"></br>
<label for="checkbox2">I agree to the <a href="http://www.chat-hctech.co.nr/hosting/AUP.html" target="blank"><u><b>Acceptable Use Policy.</b></u></a></label>
<input id="checkbox2" type="checkbox" value="2" name="check-input"></input><br>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</form>
</div>
<br style="clear: both;" />
<div class="border footer">This page is copyright 2006<a href="http://www.chat-hctech.co.nr/hosting/">www.chat-hctech.co.nr/hosting</a> aLL RIGHTS RESERVERED!</div>
</div>
</body>
</html>

_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Tue Oct 03, 2006 1:50 am    Post subject: Reply with quote

any help?
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Tue Oct 03, 2006 6:01 am    Post subject: Reply with quote

hc2995 wrote:
Code:
<html>
<head>
<title>Form recieved!</title>
<?php
$to = 'hc2995@comcast.net';
$subject = 'Form Proccessor';
$body = $_POST['body'];
mail($to, $subject,$body);
?>
</head>
<body>
<p>Your form has been recieved and will undergo review you will recieve a response within 24 hours to the e-mail you supplied</p>
</body>
</html>


I don't understand the part where you have:
Code:
$body = $_POST['body'];

What exactly is this? Because i cannot find that variable defined in the Form anywhere.

Somewhere in sendform.php you're going to have to define $body as all the variables you submitted. Something like:
Code:
$body = "First Name:", $_POST['firstname'], "<br/>
Last Name:", $_POST['lastname'], "<br/>";

etc. I haven't coded in awhile so this is what i would suspect is your problem. And i wouldnt be surprised if my coding is totally wrong lol but that should tell the people who know what they're talking about what's wrong with your script.
_________________
mysql> SELECT * FROM users WHERE clue > 0;
0 rows returned.

Back to top View user's profile Send private message AIM Address
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Tue Oct 03, 2006 6:48 am    Post subject: Reply with quote

Tim1681 wrote:
hc2995 wrote:
Code:
<html>
<head>
<title>Form recieved!</title>
<?php
$to = 'hc2995@comcast.net';
$subject = 'Form Proccessor';
$body = $_POST['body'];
mail($to, $subject,$body);
?>
</head>
<body>
<p>Your form has been recieved and will undergo review you will recieve a response within 24 hours to the e-mail you supplied</p>
</body>
</html>


I don't understand the part where you have:
Code:
$body = $_POST['body'];

What exactly is this? Because i cannot find that variable defined in the Form anywhere.

Somewhere in sendform.php you're going to have to define $body as all the variables you submitted. Something like:
Code:
$body = "First Name:", $_POST['firstname'], "<br/>
Last Name:", $_POST['lastname'], "<br/>";

etc. I haven't coded in awhile so this is what i would suspect is your problem. And i wouldnt be surprised if my coding is totally wrong lol but that should tell the people who know what they're talking about what's wrong with your script.



the $_post['body'] is supossed to be what the user imputs on the HTML page i didnt think it would work tho :/
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Tue Oct 03, 2006 7:27 am    Post subject: Reply with quote

but the user is inputting the variables $_POST['firstname'] $_POST['lastname'] etc. So putting $body isnt going to make PHP automatically figure "hey. ok so he must mean $body is all those variables from the form that i should send to his email." You have to tell PHP to do that.
_________________
mysql> SELECT * FROM users WHERE clue > 0;
0 rows returned.

Back to top View user's profile Send private message AIM Address
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Tue Oct 03, 2006 7:48 pm    Post subject: Reply with quote

ARG i hate coding php :/ im goinna look for other ways of sending the form :|

EDIT: Is there a way to use server side scripts? i have heard of this but i dont know how to use them, if someone knows how please post it thanks :D
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Tue Oct 03, 2006 9:16 pm    Post subject: Reply with quote

hc2995 wrote:
ARG i hate coding php :/ im goinna look for other ways of sending the form :|

EDIT: Is there a way to use server side scripts? i have heard of this but i dont know how to use them, if someone knows how please post it thanks :D


php is a server side program, so the scripts that you write using php are server side scripts

Why are you giving up?
You are getting the emails, so it is working

Code:
<?php
$to = 'hc2995@comcast.net';
$subject = 'Form Proccessor';
$body = "First name: ". $_POST['firstname'] ."<br />
Last name: ". $_POST['lastname'] ."<br />
email: ". $_POST['email'] ."<br />
Address: ". $_POST['address'] ."<br />
City: ". $_POST['city'] ."<br />
State: ". $_POST['state'] ."<br />
Zip code: ". $_POST['zip'] ."<br />
Site name: ". $_POST['Site_name'] ."<br /> //do not use spaces in variable names
Password: ". $_POST['password'];

mail($to, $subject,$body);
?>


As stated in the comment, do not use spaces in variable. This means that you will have to change the name of the form text field to reflect this

Code:
Site name: <INPUT type="text" name="Site_name">

_________________
Anthony R

Roganty
| Links-Links.co.uk


Last edited by roganty on Tue Oct 03, 2006 11:41 pm; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Tue Oct 03, 2006 9:32 pm    Post subject: Reply with quote

lol i feel retarted now, I never really learned .php so i dont know how to program it :/ i have read about it but i never leanred it its something i plan to do some day lol
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Oct 03, 2006 9:33 pm    Post subject: Reply with quote

Now is as good a time as any to start :-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Tue Oct 03, 2006 9:41 pm    Post subject: Reply with quote

*opens "PHP5 For Dummies"*

EDIT: Ok i made the form proccessor (which i willl call "sendform.php") here is its contents:

Code:

<html>
<head>
<title>Message Recieved!</title>
<?php
$to = 'hc2995@comcast.net';
$subject = 'Form Proccessor';
$body = "First name: ". $_POST['firstname'] ."
Last name: ". $_POST['lastname'] ."
email: ". $_POST['email'] ."
Address: ". $_POST['address'] ."
City: ". $_POST['city'] ."
State: ". $_POST['state'] ."
Zip code: ". $_POST['zip'] ."
Site name: ". $_POST['Site_name'] ."
Password: ". $_POST['password'] .
mail($to, $subject,$body);
?>
</head>
<body>
<p>Your message was recieved and will undergo review, if selected your account will be activated and you will recieve and e-mail to the e-mail you provided!</p>
</body>
</html>


NOW, How do i make what the user puts in the signup page (which i will call signup2.html) appear in the body of an e-mail message (so i can see what they put in the fields)


The HTML page is below
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sign up for an account!</title>
<link rel="stylesheet" type="text/css" href="http://69.139.233.82/server stuff/images/images188/teal_b.css">
</head>
<body>
<div class="wrapper">
<div class="title titlemargin">Sign up for an account!</div>
<div class="left" style="font-weight: bold; margin: 5px; height: 100%; width: 150px;" align="center">
<div class="sidebaritem first"><a href="http://www.chat-hctech.co.nr/hosting/">Back to home</a></div>
</div>
<div class="border content padleft" style="padding-right: 20px;">
<p class="title2">Please fill in the form below:</p>
<form action="http://69.139.233.82/hosting/sendform.php" method="post">
First name: <INPUT type="text" name="firstname"><BR>
Last name: <INPUT type="text" name="lastname"><BR>
email: <INPUT type="text" name="email"><BR>
Address: <input type="text" name="address"><br>
City: <input type="text" name="city"><br>
State: <input type="text" name="state"><br>
Zip code: <input type="text" name="zip"><br>
Site name: <INPUT type="text" name="Site name"><br>
Password: <input type="password" Name="password"><br>
Password: (again) <input type="password" Name="password2"></br>
<label for="checkbox2">I agree to the <a href="http://www.chat-hctech.co.nr/hosting/AUP.html" target="blank"><u><b>Acceptable Use Policy.</b></u></a></label>
<input id="checkbox2" type="checkbox" value="2" name="check-input"></input><br>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</form>
</div>
<br style="clear: both;" />
<div class="border footer">This page is copyright 2006<a href="http://www.chat-hctech.co.nr/hosting/">www.chat-hctech.co.nr/hosting</a> aLL RIGHTS RESERVERED!</div>
</div>
</body>
</html>



Say for example i put "Howard" as my first name in the e-mail message i want to see something like firstname=Howard or something like that, as of now i DO recieve the e-mails, the subject is "Form Proccessor" BUT the body of the message is empty.
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Tue Oct 03, 2006 11:38 pm    Post subject: Reply with quote

hc2995 wrote:
NOW, How do i make what the user puts in the signup page (which i will call signup2.html) appear in the body of an e-mail message (so i can see what they put in the fields)
[cut]
Say for example i put "Howard" as my first name in the e-mail message i want to see something like firstname=Howard or something like that, as of now i DO recieve the e-mails, the subject is "Form Proccessor" BUT the body of the message is empty.


Lets make this very simple.
Code:
$_POST['firstname']

Code:
First name: <INPUT type="text" name="firstname">


When the user submits signup2.html it puts the form values in the request for sendform.php

in sendform.php you can access the form values by using
Code:
$_POST["name_used_for_form"]


Now take a second look at the following
Code:
$body = "
First name: ". $_POST['firstname'] ."
Last name: ". $_POST['lastname'] ."
email: ". $_POST['email'] ."
Address: ". $_POST['address'] ."
City: ". $_POST['city'] ."
State: ". $_POST['state'] ."
Zip code: ". $_POST['zip'] ."
Site name: ". $_POST['Site_name'] ."
Password: ". $_POST['password'] ."\r\n\r\n";


Code:
mail($to, $subject, $body);


Edit: just remembered, you need to add two(?) new lines to the end of the "body"
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Wed Oct 04, 2006 12:38 am    Post subject: Reply with quote

roganty wrote:
hc2995 wrote:
NOW, How do i make what the user puts in the signup page (which i will call signup2.html) appear in the body of an e-mail message (so i can see what they put in the fields)
[cut]
Say for example i put "Howard" as my first name in the e-mail message i want to see something like firstname=Howard or something like that, as of now i DO recieve the e-mails, the subject is "Form Proccessor" BUT the body of the message is empty.


Lets make this very simple.
Code:
$_POST['firstname']

Code:
First name: <INPUT type="text" name="firstname">


When the user submits signup2.html it puts the form values in the request for sendform.php

in sendform.php you can access the form values by using
Code:
$_POST["name_used_for_form"]


Now take a second look at the following
Code:
$body = "
First name: ". $_POST['firstname'] ."
Last name: ". $_POST['lastname'] ."
email: ". $_POST['email'] ."
Address: ". $_POST['address'] ."
City: ". $_POST['city'] ."
State: ". $_POST['state'] ."
Zip code: ". $_POST['zip'] ."
Site name: ". $_POST['Site_name'] ."
Password: ". $_POST['password'] ."\r\n\r\n";


Code:
mail($to, $subject, $body);


Edit: just remembered, you need to add two(?) new lines to the end of the "body"


KICK ASS YOU OWN MAN!!!!!!!!!! YES IT WORKS NOW! I OW YOU BIG TIME!
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group