Click to See Complete Forum and Search --> : newbie help sending info to me.


justinwj
12-04-2006, 07:58 PM
Heya, i have very small knowledge of html and basically no knowledge of javascript. im a fast learner tho. ok question is, all i need is for two text boxes to have their infomation, that a user inputs into them, sent to my email addresss. basically

Name : ________ (((<-- thats the text box)))
Email : ________ (((<- another text box)))

and then a send button to send the info above to my email. Also im curious if there is a way for when you click the send button, it also redirects you to another page?

any thoughts would be appreciated, ive read previous posts and ive searched but i have found nothing that i could use to help. im most likely hosting the site on geocities or soemthing like that. if anyone has any better free webhosting sites, lemmie know. Well thanks!

- Justin

beahawk
12-05-2006, 06:22 AM
You need to do two things.

First make a form for your users to input the information:

<form action="feedback.php" method="post">
<label for="name">Name</label><input type="text" id="name" name="name" />
<label for="email">Email Address</label><input type="text" id="email" name="email" />
<input type="submit" value="Send Feedback" />
</form>

Then you need to process that form, the easiest way in my opinion is to use php. Your form is pointing to feedback.php. In feedback.php you would need to use mail() and header() functions to send the message and relocate the user to your thanks page respectively.

There are thousands of scripts out there that have this all done for you. Search google for "php form to email".

Good luck!