View Full Version : E-mail Forms Help


kiara
10-31-2005, 09:22 PM
So I have this code for an e-mail form
<form method="post" enctype="text/plain" action='mailto:boundlessconfidence@gmail.com'>
<input type="hidden" name="To" value="Go! .:.:.Change Info">

<input type="hidden" name="after_url" value="confirm.php">

Name: <input type="text" size="20" name="name" value=""><br>
Email: <input type="text" size="20" name="email" value=""><br>
URL: <input type="text" size="20" name="url" value=""><br>
New URL: <input type="text" size="20" name="newurl" value=""><br>
New Email: <input type="text" size="20" name="newemail" value=""><br><br>

<input type="submit" value=" Submit"> <input type="reset" value=" Oops?">

</form>

And for some reason it's not quite working. I had another code:

<form action="confirm.php" method="POST">

<input type="hidden" name="required_fields" value="subject,after_url,name,email,url">
<input type="hidden" name="subject" value="Go! .:.:.Change Info.:.:.">
<input type="hidden" name="your_email_address" value="boundlessconfidence@gmail.com">
<input type="hidden" name="check_email_address" value="yes">
<input type="hidden" name="after_url" value="confirm.php">

Name: <input type="text" size="20" name="name" value=""><br>
Email: <input type="text" size="20" name="email" value=""><br>
URL: <input type="text" size="20" name="url" value=""><br>
New URL: <input type="text" size="20" name="newurl" value=""><br>
New Email: <input type="text" size="20" name="newemail" value=""><br><br>
<input type="submit" value=" Submit"> <input type="reset" value=" Oops?">

</form>

And this one also didn't work. I prefer the second code to the first, but either would work. So if anyone could help me, it would be much appreciated.


Happy Halloween =]

Rodie
10-31-2005, 09:41 PM
I see a lot of <input> tags but no </input> ...
Would that be the problem??

J-man91
11-01-2005, 12:52 AM
No, the <input> tag is self-closing. there's no end tag. I don't see any problems with the code..

pb&j
11-01-2005, 04:33 AM
you did not say exactly what part was not working, or rather, what is happening instead of the correct response?

the first one uses MAILTO which is not really reliable.

the second one will assume you have a processing script called "confirm.php" located on your hosted area.

Zohar Amihud
11-01-2005, 07:18 PM
I checked the first code with IE6 and Outlook Express and it is working, but I suggest you to give another names to the form's fields. Do not use reseved keywords like "name" of "email" or "url". If you want to use a "name" you can write "myName" or "fName" or..., so avoid using reseved keywords.

kiara
11-01-2005, 07:53 PM
confirm.php is just a page that says "thanks" really.


And actually, the form works perfectly for the second one...but I never get the e-mail. And yes, I did check my typing to see if it was a misspell >_<

putnamehere
11-01-2005, 09:11 PM
If confirm jsut says thanks that whats gona send the email?
the idea is the data from teh form is taken to the php file were it could then send it ina email.
http://www.lissaexplains.com/forum/showthread.php?t=45530

kiara
11-01-2005, 10:52 PM
^^^ If I wanted to add more fields other than from, subject and msg...how would I do so?

kiara
11-02-2005, 10:51 PM
Sorry for the double post but...

So I downloaded dodosmail and installed it. It worked fine until my friend tried filling out the form, then it wouldn't send! My codes are:
[ on my 'change info page' ]

<form action="dodosmail.php" method="post">
<p>
<!-- these variables require customization -->
<input type="hidden" name="required_fields" value="subject,name,email" />
<input type="hidden" name="subject" value="Go! .:.:. Info Change" />
<input type="hidden" name="check_email_address" value="yes" />

<!-- old variables for error page and output page are not replaced by css -->
<!-- now you may choose to define the header and footer files for your dodosmail.php below -->
<input type="hidden" name="dodosmail_header_file" value="header.php" />
<input type="hidden" name="dodosmail_footer_file" value="footer.php" />

<!-- these variables are for the auto response email sent to your sender, feel free to disable by putting a "no" in the first line -->
<input type="hidden" name="autoresponse" value="no" />
<input type="hidden" name="owner_name" value="me" />
<input type="hidden" name="response_subject" value="Thank you for your mail!" />
<input type="hidden" name="response_mail" value="This is an auto response to let you know that I've successfully received your email sent through my email form. Thanks!" />

<!-- if you want dodosmail to do redirection, uncomment the following and edit appropriately -->
<input type="hidden" name="after_url" value="confirm.php">





Name:
<input type="text" name="name" /><br>
Email:
<input type="text" name="email" /><br>
URL:
<input type="text" name="url" /><br>
New Email:
<input type="text" name="newemail" /><br>
New URL:
<input type="text" name="newurl" /><br><br>
<input type="submit" value=" Submit"> <input type="reset" value=" Clear">


</form>

and then on the dodosmail.php page I kept everything the same except I changed the <?
##$your_email_address="boundlessconfidence@gmail.com"; to fit my e-mail and deleted the ## signs.

But it's not working >_< Anyone think they can help?