Html Form Problem..

Discussion in 'Gaming' started by Reflection-X13, Sep 17, 2005.

  1. Reflection-X13

    Reflection-X13 Well-Known Member

    Posts:
    480
    Likes Received:
    0
    Joined:
    Aug 16, 2005
    This is probably the first time i've ever made a form in my life..my problem is that when i hit submit, internet explorer tells me that the form is being submitted by e-mail and that my e-mail address will be revealed, no encryption and it opens up my e-mail program addressed to the recipient e-mail in the form, and nothing at all in the body.

    My question is, how do I get the form to submit without it opening another e-mail thing, such as gmail, outlook or whatever? Basically a direct submission to the target e-mail.

    Code:
    <form method="POST" action="mailto:[email protected]?subject='All-Star Basketball Camp Registration'" ENCTYPE="text/plain">
    
    <font size="3">[b][u]Camper Information[/u][/b]</font>
    
    Name: <INPUT TYPE="text" Name="name" SIZE="30">
    
    Address: <INPUT TYPE="text" Name="address" SIZE="55">
    
    City: <INPUT TYPE="text" Name="city" SIZE="25"> State: <INPUT TYPE="text" Name="state" SIZE="2"> Zip Code: <INPUT TYPE="text" Name="zip" SIZE="5">
    
    Home Telephone(no dashes): <INPUT TYPE="text" Name="phone" SIZE="10">
    
    Parent Daytime Telephone(no dashes): <INPUT TYPE="text" Name="dayphone" SIZE="10">
    
    Fax(optional): <INPUT TYPE="text" Name="fax" SIZE="10">
    
    Age At Camp: <INPUT TYPE="text" Name="age" SIZE="2"> Height(i.e. 5'0"): <INPUT TYPE="text" Name="height" SIZE="4"> Weight(lbs.): <INPUT TYPE="text" Name="weight" SIZE="3">
    
    School: <INPUT TYPE="text" Name="school" SIZE="50">
    
    Coach: <INPUT TYPE="text" Name="coach" SIZE="50">
    
    Position: <INPUT TYPE="text" Name="position" SIZE="50">
    
    Male: <INPUT TYPE="radio" Name="gender" Name="Male"> Female:<INPUT TYPE="radio" Name="gender" Name="Female">
    
    Birthdate: Month 
    <SELECT Name="bday_Month" SIZE="1">
    <OPTION SELECTED>January
    <OPTION>February
    <OPTION>March
    <OPTION>April
    <OPTION>May
    <OPTION>June
    <OPTION>July
    <OPTION>August
    <OPTION>September
    <OPTION>October
    <OPTION>November
    <OPTION>December
    </SELECT>
    Day 
    <SELECT Name="bday_Month" SIZE="1">
    <OPTION>1
    <OPTION>2
    <OPTION>3
    <OPTION>4
    <OPTION>5
    <OPTION>6
    <OPTION>7
    <OPTION>8
    <OPTION>9
    <OPTION>10
    <OPTION>11
    <OPTION>12
    <OPTION>13
    <OPTION>14
    <OPTION>15
    <OPTION>16
    <OPTION>17
    <OPTION>18
    <OPTION>19
    <OPTION>20
    <OPTION>21
    <OPTION>22
    <OPTION>23
    <OPTION>24
    <OPTION>25
    <OPTION>26
    <OPTION>27
    <OPTION>28
    <OPTION>29
    <OPTION>30
    <OPTION>31
    </SELECT>
    Year: <INPUT TYPE="text" Name="year" SIZE="4">
    
    Parent Name: <INPUT TYPE="text" Name="parent" SIZE="50">
    
    
    
    <font size="3">[b][u]Package[/u][/b]</font>
    
    [b]Please Check (You may choose more than one):[/b]
    
    <INPUT TYPE="checkbox" Name="week" Name="week1"> July 25 - 29, 2006 at Holy Cross Highschool....$150.00
    
    <INPUT TYPE="checkbox" Name="week" Name="week1"> August 1 - 5, 2006 at Holy Cross Highschool....$150.00
    
    <INPUT TYPE="checkbox" Name="week" Name="week1"> July 25 - 29, 2006 at Burlington Township....$150.00
    
    <INPUT TYPE="checkbox" Name="insurance" Name="insurance"> Insurance - per week....$5.00
    
    
    
    After submitting this form, please send in the medical form along with a non-refundable deposit of:
    
    <center><font size="3">[b]
    $95.00 deposit for 1 week
    
    $135.00 deposit for 2 weeks
    
    $180.00 deposit for 3 week
    
    
    
    Enroll 2 weeks.......Take $15.00 off of total
    
    Enroll 3 weeks.......Take $30.00 off of total
    
    [/b]</font>
    
    [b]Make checks payable to:
    [/b]
    Ken Faulkner Basketball, Inc.
    
    901 Second Street
    
    Delanco, New Jersey 08057
    
    
    <font size="2">[b][u]IMPORTANT: Balance is due on or before July 1st, 2006[/u][/b]
    
    </font>
    
    For Further Information call:
    
    [b]856-461-8805
    
    856-461-1577 (Fax)[/b]
    
    
    
    
    <INPUT TYPE="submit" Name="Submit Registration">
    <INPUT TYPE="reset">
    </center>
    </form>
    Any ideas?
     
  2. Gothic Surge

    Gothic Surge Well-Known Member

    Age:
    36
    Posts:
    3,357
    Likes Received:
    0
    Joined:
    Jun 1, 2005
    i think your php buttons are wrong are you sure you use brackets?? becuase it shouldn't show up on the page like it does
     
  3. Gothic Surge

    Gothic Surge Well-Known Member

    Age:
    36
    Posts:
    3,357
    Likes Received:
    0
    Joined:
    Jun 1, 2005
    I think its beucase of the action you putting at hold on i have an html book right here i am looking at it ....i think its the request to send the email out ...i can't see what else would cause that
     
  4. Reflection-X13

    Reflection-X13 Well-Known Member

    Posts:
    480
    Likes Received:
    0
    Joined:
    Aug 16, 2005
    shouldn't the form just send the e-mail though directly through internet explorer without any 'middle man' e-mail such as gmail (gmail opened up for me) outlook or whatever? I've looked at many tuts, and they all say to do that, and if i try to use a php script, it asks if i want to download the file.
     
  5. Gothic Surge

    Gothic Surge Well-Known Member

    Age:
    36
    Posts:
    3,357
    Likes Received:
    0
    Joined:
    Jun 1, 2005
    hey you should try and put it on a site first and see if it works off of there first do you want me to put that on my site??
     
  6. Reflection-X13

    Reflection-X13 Well-Known Member

    Posts:
    480
    Likes Received:
    0
    Joined:
    Aug 16, 2005
    already tried that, both for the mailto action and the php script..same results.
     
  7. Gothic Surge

    Gothic Surge Well-Known Member

    Age:
    36
    Posts:
    3,357
    Likes Received:
    0
    Joined:
    Jun 1, 2005
    DAMNIT i tried doing it my self and it came up the same crap and i just did it threw this big book with all these codes...this is so gay give me another few minutes i will fix this !!!
     
  8. Reflection-X13

    Reflection-X13 Well-Known Member

    Posts:
    480
    Likes Received:
    0
    Joined:
    Aug 16, 2005
    could it be that IE updated something?
     
  9. Gothic Surge

    Gothic Surge Well-Known Member

    Age:
    36
    Posts:
    3,357
    Likes Received:
    0
    Joined:
    Jun 1, 2005
    you know this book is like 6 months old which is really old in the freakin iexplorer world so it could be that my bad dude i tried to work it but i wont work...sorry man
     
  10. Reflection-X13

    Reflection-X13 Well-Known Member

    Posts:
    480
    Likes Received:
    0
    Joined:
    Aug 16, 2005
    no, it's cool..thanks for the effort +rep.
     
  11. elusive.

    elusive. Well-Known Member

    Posts:
    2,191
    Likes Received:
    0
    Joined:
    Aug 4, 2004
    I don't know HTML, but common sense tells me that you might need </OPTION> in there after each of your options, from what I've seen elsewhere, although I'm probably wrong, at least I tried <_<
     
  12. Gothic Surge

    Gothic Surge Well-Known Member

    Age:
    36
    Posts:
    3,357
    Likes Received:
    0
    Joined:
    Jun 1, 2005
    Its not that i put it up on my site and tried it there but it still didn't said the messege about the email...it makes no since
     
  13. 4nub1s

    4nub1s Senior Member

    Posts:
    3,476
    Likes Received:
    0
    Joined:
    Feb 24, 2005
    Location:
    Beyond Reality
    That is correct, you need to close the <option> tags. Also, without using a server side script to process the form, you have to use the mailto action like you have already. If your client, or whoever is using the form has .net framework installed, all they would need to do is hit send once it brings up their mail client. ;)
     
  14. Dappem

    Dappem Well-Known Member

    Posts:
    232
    Likes Received:
    0
    Joined:
    Aug 15, 2004
  15. GODJonez

    GODJonez Member

    Age:
    37
    Posts:
    23
    Likes Received:
    0
    Joined:
    Sep 16, 2005
    Location:
    Suonenjoki, Finland
    The form action is mailto:something.

    Mailto is a special "protocol" that tells the browser to open the default e-mail application. In this case the form says that the form is to be submitted to that e-mail address there. And since the browser itself isn't a SMTP (outgoing e-mail) server, it needs to open a program that can send the mail, in your case it opened gmail as it can send mail.

    E-mails are sent by SMTP servers. Usually your Internet Service Provider gives you one. Gmail also gives you one. For example if you use Outlook Express to send mail, you have configured the address to the SMTP server and when you send the mail, it is sent through that server. So because your Internet browser is not SMTP server, it can't send the mail by itself but it opens your e-mail application where you have configured the server.

    If you want the form to be sent to your e-mail from the server side, you need to have an application on the server that can send the mail, such as Outlook Express on your machine, you just need a CGI program that can do the sending.

    The requirements are: you need to have SMTP server (gmail's server should do) and a CGI program on the server that is configured to send the form to that SMTP server. The program can be made using ASP, PHP, Perl or any other language that the server supports.

    If the server is running on Windows, I have a ready program written in C and compiled to Windows executable that can send e-mail from the server.
     

Share This Page