View Full Version : Simple Form
Hi every1,
I*v searched alot but didnt find anything like i need.
http://i22.tinypic.com/zwz2ua.jpg
Aint nothing special, that would be a "something.php" file, i would know how to edit and add more fields just need the basic code for that on the pic.
The "send" button saves the info entered and sends to a email or web.
Any1 help?
BLiZZaRD
10-24-2007, 02:09 AM
Right here (http://www.htmlgoodies.com/tutorials/forms/article.php/3479121) Not the most secure or the most fancy, but it works.
Right here (http://www.htmlgoodies.com/tutorials/forms/article.php/3479121) Not the most secure or the most fancy, but it works.
Thank you very thats exactly what i needed;)
But still there is one more problem, the button "submit"
<INPUT TYPE="submit">
When i click on it then my mail client opens in a attempt to send the form:/
I dont want that to happen to other users, i want it to mail to me, but when you click on submit it goes to another page or the same doesnt matter ,just that it doesnt open the mail client?
djr33
10-26-2007, 09:49 PM
You have several options:
action="mailto:me@my.com"
Bad, for the reasons you just noted.
action="http://outsidesite.com/free/form/mailer.htm"
Ok, and just search google for one that will work. But it's going to have ads in the email, etc. Not too customizable, but sometimes they have a custom next page.
action="mypage.php"
Using PHP you could parse the form yourself and send it to a specific page if it works, after sending the email message (just in PHP using the mail() function).
The 3 step i assume it needs more coding right? (creating a php file that i link or not? )
The 2 step i dont care if ads in my mail are if the content of the form will be shown(thats the most important) but could not find such web page, did find some sites but they are offering a form creator, then download etc...
djr33
10-27-2007, 06:45 AM
Yes, the 3rd option would require you code a page in PHP or another language.
The 2nd requires a site that does the same, but would already be setup. Google "free form mailer" and you'll get enough results.
tech_support
10-27-2007, 07:48 AM
See this: http://www.dynamicdrive.com/forums/showthread.php?t=23295#14
Ty very much, i didnt expect such help ;)
For every1 who wants the same this is the ultimate combination:)
Just edit as necessary. I'm going to host the e-mailer script. (Don't worry, no ads here :))
<form name="form" action="http://www.alotofstuffhere.com/scripts/emailer.php" method="post">
<p><label>Name: <input type="text" name="name"></label></p>
<p><label>Address: <input type="text" name="address"></label></p>
<p><label>Phone Number: <input type="text" name="phone"></label></p>
<p><label>E-Mail: <input type="text" name="email"></label></p>
<p><label><input type="submit" name="_Submit" value="Submit"></label></p>
<p>
<label><input type="hidden" name="_email" value="*******************"></label>
<label><input type="hidden" name="_message" value="Thanks for submitting this form."></label>
<label><input type="hidden" name="_footer" value="Regards, Your Company."></label>
<label><input type="hidden" name="_subject" value="Your Company."></label>
<label><input type="hidden" name="_callit" value="Your Company"></label>
<label><input type="hidden" name="_redirect" value="http://www.google.com.au/"></label>
</p>
</form>
Note the _ means a non-parsed (meaning that It won't get sent in the e-mail) line.
Dictionary
_email = From
_message = Beginning of the message
_footer = End of the message
_Submit = The button 'Submit' :p (DO NOT CHANGE THE SUBMIT BUTTON NAME.)
_subject = Subject of the message
_callit = Whatever you want to call yourself (eg. "You have recieved a new message from ..." instead of the e-mail)
_redirect = Where you want to be redirected afterwards. Please include the FULL URL.
Right here (http://www.htmlgoodies.com/tutorials/forms/article.php/3479121) Not the most secure or the most fancy, but it works.
Cheers.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.