I am looking to get some help for my wedding website, I have the entire page coded but now need to add a html form to the blank space I have reserved for it. I know it requires Java, but I have no experience with programming, just very basic HTML. Can anyone help me make a very basic form? Here's what I need: Name: Email or Phone: Number Attending: Message [Optional]: What I am looking for is very basic, just blank boxes under the text, enough space for them to be able to type a response. All I need in terms of submitting is when they hit submit, it sends me an email with the info, and then takes them back to the home page or I can make a confirmation page. Any help doing this would be greatly aprpeciated, you don't need to code it for me obvioulsly (unless you want too!), I just need help.
you started thinking in right direction. you gonna need to save those data somewhere and update accordingly. i think you better off hiring somebody do it.
For such a simple form you don't need javascript. Go to w3schools.com and you will see everything that you need.
You really don't need java for this. All you need is something like the following PHP code on form submission: mail( "your@email.com", "Title of Message", $_POST['message'], "From: ".$_POST['name']." <".$_POST['email_of_sender'].">"); PHP:
Where do I add that in my code? Here is the code I wrote for the form so far. Not sure how to make it email when they hit the RSVP button. <form> First Name: <input type="text" name="FirstName" /><br /><P> Last Name: <input type="text" name="FirstName" /><br /><P> Guests: <input type="text" name="FirstName" /><br /><P> Message: <input type="text" name="LastName" /><br /><p> <input type="submit" value="RSVP" /> </form> Code (markup):
Firstly try doing this to the form: <form method="post" action="send.php"> First Name: <input type="text" name="FirstName" /><br /> Last Name: <input type="text" name="LastName" /><br /> Guests: <input type="text" name="Guests" /><br /> Message: &nsbsp;<input type="text" name="Message" /><br /> <input type="submit" value="RSVP" /> </form> HTML: Create a new file called "send.php" then add the following code: <?php mail( "the@email.com", "Title of Message", "Guests: ".$_POST['Guests']."/n/n".$_POST['Message'], "From: ".$_POST['FirstName']." ".$_POST['LastName']." <the@email.com>"); ?> DOWN HERE YOU COULD ADD A CONFIRMATION MESSAGE... PHP: To whose email would you like the form to be sent? Replace the with the email address you want.