champio Posted August 27, 2009 Share Posted August 27, 2009 Hello I am very new at this and i am trying to make a basic form for my job for people to fill out their needs and submit them to me. I was able to code (through HTML) the form but unfortuantely its not functional. I need the information filled out in the form to be transferred into the email when its opened and then sent to me. I have been told ( and read on other sites) that i need somethign to do with PHP coding to make this work. But as i am a total newbie i dont know what to believe. I have attached the code at the bottom and i am hoping at least one person out there will either help me out or at least point me in the right direction. Thanks <html> <body> <form> <h1>Clerical Requistion Form </h1> <name="input" action="fake@email.com" method="post"> Date/Time (of drop of): <input type="text" name="Date/Time (of drop off)"size="20"><br /> Due date/time: <input type="text" name="Date/Time (of drop off)" size="20"><br /> <name="input" action="form_action.asp" method="get"> Name of Contact: <input type="text" name="Date/Time (of drop off)" size="20"> Ext:<input type="text" name="Date/Time (of drop off)" size="20"></br> <name="input" action="form_action.asp" method="get"> Project Number: <input type="text" name="Date/Time (of drop off)" size="20"><br /> <name="input" action="form_action.asp" method="get"> Drive Path In Which The File is Found: <input type="text" name="Date/Time (of drop off)" size="20"><br /> <p> Comments/Special Requests </p><textarea> </textarea> <h2> For Copy Jobs Only </h2> <name="input" action="form_action.asp" method="get"> Number of copies required: <input type="text" name="Date/Time (of drop off)" size="20"><br /> <h3> Body of the Document </h3> Colour: <input type="checkbox" name="body" value="requirement" /> <br /> Black/White: <input type="checkbox" name="body" value="requirement" /> <br /> Double Sided: <input type="checkbox" name="body" value="requirement"/> <br/> Single Sided: <input type="checkbox" name="body" value="requirement"/> <br/> Maps: <input type="checkbox" name="body" value="requirement"/> <br/> Tabs: <input type="checkbox" name="body" value="requirement"/> <br/> <h3> Covers </h3> No Title Page: <input type="checkbox" name="covers" Value="requirement"/> <br/> Title Page: <input type="checkbox" name="covers" Value="requirement"/> Printed on Cover Stock: <input type="checkbox" name="covers" Value="requirement"/> Plastic cover: <input type="checkbox" name="covers" Value="requirement"/> <h3> Finishing </h3> Cerlox: <input type="checkbox" name="finishing" Value="requirement"/> <br/> Spiral Bound: <input type="checkbox" name="finishing" Value="requirement"/> <br/> 3 Ring Binder: <input type="checkbox" name="finishing" Value="requirement"/> <br/> Stapled: <input type="checkbox" name="finishing" Value="requirement"/> <br/> Laminated: <input type="checkbox" name="finishing" Value="requirement"/> <br/> Plastic Pockets: <input type="checkbox" name="finishing" Value="requirement"/> <h2> For Scan Jobs Only </h2> Drive Path In Which it Will be Stored: </br> <textarea> </textarea> <h3> When Finished </h3> <name="input" action="fake@email.com" method="post"> <a href="formmail:fake@email.com?subject=Clerical%20Requistion%20Form"> Submit</a> <br/> </form> Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/ Share on other sites More sharing options...
mikesta707 Posted August 27, 2009 Share Posted August 27, 2009 The action attribute for HTML forms points to a page where a scripting language (Like PHP) does some sort of processing. So you are definitely going to have to use PHP to mail the information from the form to your email address. Its quite simple though. here is a basic php and html forms tutorial: http://www.tizag.com/phpT/forms.php and a php mail tutorial: http://www.w3schools.com/PHP/php_mail.asp Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/#findComment-907771 Share on other sites More sharing options...
lemmin Posted August 27, 2009 Share Posted August 27, 2009 Actually, you don't need PHP to send a form to an email address. Just change your form tag to this: <form action="mailto:fake@email.com" method="POST" enctype="multipart/form-data"> Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/#findComment-907777 Share on other sites More sharing options...
mikesta707 Posted August 27, 2009 Share Posted August 27, 2009 Yeah but that will try to open your default mailing programming (For example on a window's machine, it will open outlook express), and the form data may not even appear in the email itself (I just did a test, and my form data did NOT show up on the email itself) Plus, for me, and many user's I know, If I click a link that starts outlook express, I quickly close everything and never return to that site. However, if its for your job, and they use outlook express, than that may not be a bad way to go, and in fact would probably be the easiest way to go Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/#findComment-907785 Share on other sites More sharing options...
lemmin Posted August 27, 2009 Share Posted August 27, 2009 It has certainly been a long time since I made an HTML mail form, but I don't remember the user ever seeing the content of the email. I think what you are thinking of is a simple <a href="mailto:[...] link; that does open your email client. Anyway, I just mentioned it because, from looking at his code, that is what it looks like he is trying to do. Plus, there is a good chance that wherever he is hosting this does not have PHP available. A PHP mail form would be much better though, you're right. Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/#findComment-907794 Share on other sites More sharing options...
champio Posted August 27, 2009 Author Share Posted August 27, 2009 We do use outlook and it is entirely internal so it would be ideal. The probelm is the data is still not being transferred. So if i do those tutorials will i be able to do this? I really suck at this but am eager to learn. Thank-you all for your help Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/#findComment-907798 Share on other sites More sharing options...
mikesta707 Posted August 27, 2009 Share Posted August 27, 2009 nope, just tested the following on my local server <html> <body> <form action="mailto:mikesta707@yahoo.com" method="POST" enctype="multipart/form-data"> <input type="text" name="text" /> <input type="submit" value="Submit" /> </form> and Outlook expressed popped up. Maybe its some behavior that wasn't around in previous versions of HTML (I don't remember either, been a long time for me too ) But for OP, do you have PHP installed on your internal server? Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/#findComment-907799 Share on other sites More sharing options...
lemmin Posted August 27, 2009 Share Posted August 27, 2009 I guess you're right. I just googled it and it looks like the newer versions of Outlook will open a blank email when a form uses mailto. The strange thing is that it actually sends the email in the background, but Outlook feels left out or something so it pops up to remind you that it's there. Quote Link to comment https://forums.phpfreaks.com/topic/172166-new-and-very-confused/#findComment-907808 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.