Jump to content

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/172166-new-and-very-confused/
Share on other sites

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

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

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.

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 :D )

 

But for OP, do you have PHP installed on your internal server?

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.