Link to home
Start Free TrialLog in
Avatar of rksprst
rksprst

asked on

submit a form

Hi,

I have a form, but I don't know how to submit it using php. Is there a way to email the form? I tried using mailto:joe@doe.com but it emailed an empty message. Also, would this mailto: work even if the person was using webmail and did not set up an outlook account?

My webhosting has unlimited mysql, so if i need to create that to save the form into there, that would be fine. But I'd prefer to have it emailed to me (or any other way in which i would have easy access to the data). Thanks!

how would i fix the form to email it correctly?
or what php page would i need to create to save the form on mysql?

This is the code for my form:

<form action="mailto:rksprst@gmail.com" method="post" enctype="text/plain" name="form">
  <p>
    Name of item:
    <input name="name" type="text" id="name">
    Price: $
    <input name="price" type="text" id="price">
  </p>
  <p>Description of item:
    <textarea name="description" cols="70" rows="5" wrap="PHYSICAL" id="textarea"></textarea>
  </p>
  <p>Upload an image:
    <input name="image" type="file" id="image">
</p>
  <p>Email address:
    <input name="email" type="text" id="email">
 WE WILL NOT SEND YOU ANY JUNK EMAIL!</p>
  <p>
    <input name="private" type="radio" value="private">
    Keep my email address private. (BHJK.com will contact you on behalf of buyers)
    <input name="public" type="radio" value="public">
  I would like post my email address (Buyers will email me directly) </p>
  <p>&nbsp;</p>
  <p>How did you find out about us?
    <select name="selectt" size=1 onChange="">
<option value="">Choose One...

<!-- Option 1 -- To have the pull down menu go to your own pages, change the URL within the quotation marks and the link name.  -->
<!-- Option 2 -- You may remove or add entire lines to increase or decrease the number of links. -->
<option value="Other">Other
<option value="Newspaper">Newspaper
<option value="Poster/Flier">Poster/Flier
<option value="Search">Search
<option value="Friend">Friend

</select>
</p>
  <p>
    For security purposes please type in the numbers seen on this image: <img src="test.gif" width="78" height="20">    
    <input type="text" name="imagetest">
    </p>
  <p>&nbsp;</p>
  <p>
    <input type="checkbox" name="checkbox" value="checkbox">
    By checking this box I acknowledge that I have read and agreed to the Terms and Conditions which can be found here</p>
  <p>
    <input type="submit" name="Submit" value="Submit" > 
    <input type="reset" name="Submit2" value="Reset">
  </p>
</form>
ASKER CERTIFIED SOLUTION
Avatar of Zyloch
Zyloch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rksprst
rksprst

ASKER

Awesome.

Thanks  you!