For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > July 2004 > form results to email









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author form results to email
Vincent Jordan

2004-07-30, 3:55 pm

We have to process almost the same information via email several times a day
for customers to get items repaired. I would like to reply to their email
with a .htm page containing a fill in form, on form action it will send an
email.



I have the form and page created, all is almost working. Im having problems
with the mailto syntax. What I would like is just the values of the fileds
to print on the return mail with out the field names. Keep in mind this .htm
page will be sent to them in an email so all they have to do is fill in the
form, hit submit and it will create a new message to be sent.





Any help will be appreciated.





Here is what ive got:



<html>

<head>

<body>

<p>

<strong>RMA Request Instructions:</strong><br />



To have products shipped to Smart Parts for repair you will need to have an
RMA ( Return Mail Authorization ) number issued. To receive an RMA number
please complete the following form:

<form action="mailto:support@smartparts.com?subject=RMA
REQUEST&body="FirstName".&body="LastName" etc...>

<table>

<tr>

<td>First Name</td>

<td><input type="text" name="FirstName"></td>

</tr>

<tr>

<td>Last Name</td>

<td><input type="text" name="LastName"></td>

</tr>

<tr>

<td>Address</td>

<td><input type="text" name="address"></td>

</tr>

<tr>

<td>Address2</td>

<td><input type="text" name="address2"></td>

</tr>

<tr>

<td>City</td>

<td><input type="text" name="city"></td>

</tr>

<tr>

<td>State</td>

<td><input type="text" name="state"></td>

</tr>

<tr>

<td>Zip</td>

<td><input type="text" name="zip"></td>

</tr>

<tr>

<td>Serial Number</td>

<td><input type="text" name="serial">for markers only</td>

</tr>

<tr>

<td>Product Name</td>

<td><select>

<option value="">Select Product</option>

<option value="Old Shocker">Old Shocker</option>

<option value="03 Shocker">03 Shocker</option>

<option value="Impulse">Impulse</option>

<option value="MaxFlow">MaxFlow</option>

<option value="Barrel">Barrel</option>

<option value="Other Accessory">Other
Accessory</option>

<option value="Other Product">Other Product</option>

</select></td>

</tr>

<tr>

<td>Reason for return</td>

<td><textarea rows=5 cols=60></textarea></td>

</tr>

<tr>

<td><input type="submit"></td>

</tr>




Torsten Roehr

2004-07-30, 3:55 pm

"Vincent Jordan" <vjordan@smartparts.com> wrote in message
news:200407301643.i6UGhhQ10088@lsh119.siteprotect.com...
> We have to process almost the same information via email several times a

day
> for customers to get items repaired. I would like to reply to their email
> with a .htm page containing a fill in form, on form action it will send an
> email.
>
>
>
> I have the form and page created, all is almost working. Im having

problems
> with the mailto syntax. What I would like is just the values of the fileds
> to print on the return mail with out the field names. Keep in mind this

..htm
> page will be sent to them in an email so all they have to do is fill in

the
> form, hit submit and it will create a new message to be sent.


Hi Vincent,

wouldn't it be easier to point the form (action) to a web script that will
then email the values to wherever it needs to be sent? This would require
one less step from the user.

Regards, Torsten Roehr
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com