HTML - Contact Script
Hi,
I'm building a simple website, on the CONTACT US page i would like to have a contact script, doe's anybody know how can i puta script & if it's just copy paste or more than that? Tnx, Similar TutorialsRight I'm trying to make a contact box for a website I designed for a friend. I've done the html and everything it's just that there's no destination for the message to go to. All help is much appreciated - Joe is there something wrong with this code im not recieving emails <form name=contactme action=contactme.php method=post> <div align="center"> <table> <tr> <td align=right>Name:</td> <td width="15"> </td> <td><input size=45 maxlength=45 type=text name=name style="font-family: Courier New; font-size: 10pt"></td></tr> <tr> <td align=right>Email:</td> <td> </td> <td><input size=45 maxlength=45 type=text name=from style="font-family: Courier New; font-size: 10pt"></td></tr> <tr> <td align=right>Subject:</td> <td> </td> <td><input size=45 maxlength=90 type=text name=subject style="font-family: Courier New; font-size: 10pt"></td></tr> <tr> <td valign=top align=right>Contents:</td> <td> </td> <td><textarea name=body rows=12 cols=60 style="font-family: Courier New; font-size: 10pt"></textarea></td></tr> <tr> <td> </td> <td> </td> <td><input type=submit value=" Submit " name=submit style="font-size: 10pt; font-family: Tahoma"></td></tr> </table> </div> </form> Hi guys, i'm here with another question, I need to make a contact form for my website, I posted this at html section but i'm not sure, some people say it's html, some php some say it's both... So I googled a bit and all I find are things like this: Code: <form method="post" action="mailto:youremail@email.com"> <textarea rows="5" cols="20" wrap="physical" name="comments"> Enter Comments Here </textarea> <input type="submit" value="Send Email"> </form> This just opens windows live mail..I want to people just click a button "send email" and it sends to my email, nothing more...not this confusions...i've been googling and I find nothing, so I want to talk to the experts, which are you guys Hello, please can you help me with my contact page. I really don't know how to fill my page. What do you guys include on your pages?? The attachment show's you what mine looks like at the moment.. Thanks Hello guru's, I have created a contact form on the website, but i dont know how to send the information that the users has typed to my email address What code do i need to type? Hello everyone, I know this might sound easy but I can't remember how to do this. Does anyone know how to send information from a simple form by hitting the submit button and I should be able to view the data in my domain email? I guess you can say I can check my email and the name, email and message form fields would displayed. I've created the form, form fields and the buttons in dreamweaver. I'm not sure if the enctype is ="multipart/form-data" I've done this before in front page. it come out as a web bot but i cant remember how this works in dreamweaver. I hope I haven't confused anyone. Please reply if you know what I'm talking about. Thank you. Here is the code below from my contact.html page: <form action="thankyou.asp" method="post" enctype="text/plain" name="contactform" target="_blank"> <span class="formstitle">Name:</span><br> <input name="textfield" type="text" class="formstitle2" size="30" maxlength="30"> <br> <br> <span class="formstitle">Email:</span><br> <input class="formstitle2" name="email" type="text" id="email" size="30" maxlength="30"> <br> <br> <span class="formstitle">Message:</span><br> <textarea name="message" cols="30" rows="4" class="formstitle2" id="message"></textarea> <br> <br> <input name="Submit" type="image" value="Submit" src="images/submit.gif" alt="submit" width="56" height="28"> <input type="image" src="images/clear.gif" alt="clear" width="56" height="28"> <br> </form> I'm new to this so I'm going to post the template I found and then hopefully someone can make it right. Will upload two text files first is the contact page its an html file. the other is the contact script as a php file. Sorry if this has been brought up before but i've been trying now for about 6 hours. Thank you Bill Ruiter I'm not sure if this is the right forum for this question but I was just wondering how to change my links so that they look like: http://website.com/?page=contact Thanks for any help. Not sure if this is the right place but I was just wondering if anyone could help me. I'm trying to make an option on my contact form that when you click it, it affects whether you have to enter the other fields or drop-down box. For example and simply put, if someone clicked the box labeled 'red', then it would be required for them to fill out the box that says 'explain your choice'. However if they do not click red, then they do not need to fill out the 'explain your choice' box... How do I do this? Is there a name for it? Thanks for any help I want to be able to have three boxes that a visitor can enter input and it be emailed to me. For example: Name - (Visitor types in name) Email - (Visitor types in email) Question - (Visitor types in question) Than they hit Submit and it is emailed to me. I have found code that uses Outlook to do it, but I want it to do it through the website. Can you help me? I want a visitor on my site to have to fill out information before they can access a page on my website. I need a box that pops up and requires them to fill out their name and E-mail before being able to access the page. I also need the info to be E-mailed to me. Thnks 4 the help! Can someone please let me know where I can find a free contact form for my site. All I want is a simple form - eg: Name: Email: Message: Send: If possible a form that I can copy and paste right onto my site, thanks! Hello, I am working on a contact page and was wondering if someone could help me with the following. I have created my form in html already with minor look changes in css (nothing big). I would like to write a javascript that will first validate the manditory fields (Name, email, and the message) after which it will compile all entered data into a popup/new page that JUST shows the information to be copy and pasted to an email; then later sent off. For example if someone enters their name, email, location and message, the javascript will accept the form due to all the mandatory fields being present, and then depending on what the user input in the input fields, it will output something like the following on a new page or window: COPY AND PASTE BELOW THIS LINE --------------------------------------------------- Name: So and So Email: name@email.com Location: Country Message: Message is whatever length. --------------------------------------------------- I do have basic java knowledge so im not a total newbie. Thank you for all help; hope this isnt too daunting a task for you all. Just a little insight needed. Thanks again, -Alim For my website i want to create a table/form where people can fill in thier email, a comment and it sends it to my emai without them actualy knowing my email addressl, any idea how i can do this? Many Thanks, Narc I'm trying to create a form for my website that will email me the information when submitted. I don't know if this can be done in HTML. I cant use PHP on my forum so it cant be that. The other option i have is one coded in JavaScript. Anyone know where i can either get a html or JavaScript code for such a thing please. Thanks Jake I would like someone to help me get the email form on the html page working. I am so lost! http://hershs-salsa.com/locations.html Alright, i'm having a problem with this contact form. I made it so that it will send to your email. But when I submit, its supposed to say on a new page "Your message has been sent.", but when I send it, all it says is "'); header('Location: sent.html'); ?>". Here is the codes: Code: <html> <head> <title>Contact</title> </head> <body> <form action="form.php" method="post"> Name<br/><input type="text" name="name" /><br/> Email<br/><input type="text" name="email"/><br/> Message<br><textarea row="7" cols="70" name="message"></textarea><br/> <input type="submit" value="Submit" /> </form> </body> </html> Code: <?php $name = $_POST['name']; $email = $_POST['email']; $text = $_POST['mesasge']; mail('EMAILHERE', 'message, $text, 'From: ' . $name . ' <' . $email . '>'); header('Location: sent.html'); ?> Code: <html> <head> <title>Sent</title> </head> <body> Your message has been sent. </body> </html> Help will be appreciated. Thanks for your time. Hey all! I'm new to these forums, but by the looks of the community I can foresee myself gaining a lot of knowledge from being here. I've searched around, but haven't really found a clear answer to the problem I am having. Here's the deal, I have my own small local IT business and recently decided It's time to build a website. I am Cisco CCNA certified, and CompTia A++ Hardware and OS support certified, so I know my way around computers. However, I have ZERO knowledge of HTML/CSS/PHP ect. This of course was a huge gap in my knowledge, and the reason why I have waiting so long to get a website up and running. I am slowly learning, but everybody needs help at some point. So this is where I am at. I have created my basic website based off a template. I have modified it quite a bit, and have begun to understand basic HTML and CSS. However, I am stuck at the "Message Box, or Contact Us" Form. I am assuming the the code behind this form will either send the Users message via Email, or text document on my server. After examining the code I am completely lost as to how it works, so I need some help here. My Website is located at http://www.olsonit.com The problem page is the "Contact Us" page. Here is the code for said Message box. <tr> <td align="left" valign="top"><form name="form2" method="post" action="" style="margin:0px "> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="usial2"> <tr align="left" valign="top"> <td height="39"><strong>First name</strong><br> <input name="text25" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td width="15" rowspan="4"> </td> <td><strong>Phone</strong><br> <input name="text252" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td width="15" rowspan="4"> </td> <td width="172" rowspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="usial2"> <tr> <td><strong>Message</strong><br> <textarea name="textarea" class="intext" style="width:100%; height:126px; overflow:auto" onClick="this.value=''"></textarea></td> </tr> <tr> <td height="27" align="right" valign="bottom"><input name="reset" type="reset" style="width:56px; height:19px; background-image:url(images/clear.jpg); border:0px none; cursor:hand; cursor:pointer; margin-right:7px " value=""> <input name="submit22222" type="submit" style="width:56px; height:19px; background-image:url(images/send.jpg); border:0px none; cursor:hand; cursor:pointer; " value=""></td> </tr> </table></td> </tr> <tr align="left" valign="top"> <td height="39"><strong>Last name</strong><br> <input name="text253" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td><strong>Fax</strong><br> <input name="text254" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> </tr> <tr align="left" valign="top"> <td height="39"><strong>E-mail</strong><br> <input name="text256" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td><strong>State</strong><br> <input name="text257" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> </tr> <tr align="left" valign="top"> <td><strong>Zip</strong><br> <input name="text258" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td><strong>Address</strong><br> <input name="text259" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> </tr> </table> </form></td> </tr> </table> </div></td> </tr> </table></td> </tr> </table></td> </tr> Hopefully I'll be able to get this all figured out, since I'm sure this will be a main source of contact between my Clients and I. Any help is much appreciated! -Evan Hi Everyone! Having a little issue with getting a contact form to function properly. I only tinker around with html and web design as a whole, but I will try to expain my issue and not sound too lame. I am trying to add a contact form to a website i modified for a band. The contact form is simple, Name, email, and submit. However, the template utilizes a second html page embedded within the main page as a whole. check out www.alttheory.com to see what I mean. The area in the upper Right hand area where I am attempting to put this form. It is a separate html page called iframe.html. At the code's current position, the submit button is not doing anything at this point. The code that a friend sent me who has no problem getting it to work on his site is he <div id="apDiv1"> <form action="sendmail.php" method="post"> <p><img src="images/contentemail.png" width="137" height="26" /> <input name="email" type="text" /> <img src="images/contactmessage.png" width="169" height="25" /> <textarea name="message" cols="24" rows="8" id="name"></textarea> <input name="submit" type="image" src="/images/contactsubmit.png" width="100" height="33"/> </p> I then place the sendmail.php in the main directory which is also supposed to work, after changing the send to email to my own and create and specify the thanks.html page. the sendmail.php code i am trying to use is he <?php $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; mail( "myemail@mail.com", "Feedback Form Results", $message, "From: $email" ); header( "Location: http://www.band.com/thankyou.html" ); ?> Can anyone see what I am doing wrong and offer some guidance? Any help would be much appreciated. thanks. Best, Bill Hi I want to add a CAPTCHA to my contact form as i have been getting hit badly by spammers was wondering if any one could give me some advice or script on how to do that....thanks in advance |