Forum Moderators: open

Message Too Old, No Replies

HTML form to Send me an email with data

so confused!

         

jnscollier

2:22 am on Jun 30, 2006 (gmt 0)

10+ Year Member



I am so frazzled right now. basically I am trying to create a kind of "contact us" page. THis page is going to send their name and comments to my email address.

I've looked online for scripts and tried them out but NOTHING seems to be working. I can't use php bc the server doesnt support that. Isn't there an easy way to do this?

*~sammy.

SanDiegoPaul

4:18 am on Jun 30, 2006 (gmt 0)

10+ Year Member



YOu don't need scripts to do email replys. Method=post will do it just fine.

eagle_y2j

11:38 am on Jun 30, 2006 (gmt 0)

10+ Year Member



Dude this code will work ur purose

<form method="post" action="email@address" enctype="text/plain">

rocknbil

7:08 pm on Jun 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jns the mailto method will work but it will send you a bunch of mixed up formatting, some would even see it as unintelligible.

Data submitted from a form is encoded into a query string or data stream. That is, form "keys" are associated with the form field "values," and anything outside the ASCII character set is "encoded" so it can be sent. So for the form fields "Email" and "Comments" it is sent to the server like this for the method GET:
Email=here@there.com&Comments=This%20is%20a%20comment

Server-side scripts unencode it, converting the encoded charaters to plain English characters, and spitting up the key/value pairs into their associated values:

Email here@there.com
Comments This is a comment

SO. A server side script will unencode submitted form data, organize and format it, call the mail program and send the formatted mail. If you don't need formatting, just try the suggested mailto method.

If that's not sufficient and scripts are not working for you, you have to choose your battleground and learn some things. It's unusual that php is not supported, but surely perl is supported. Look for perl mailer scripts or write one of your own. In either case do like the rest of us, answer your frustration with perseverance and keep at it. :-)

jnscollier

2:34 pm on Jul 1, 2006 (gmt 0)

10+ Year Member



LOL! frustration is so the word.

Thanks all!

-Saammmmyyy

Geoffrey james

6:19 am on Jul 15, 2006 (gmt 0)

10+ Year Member



hey scollier,

have you sorted the problem yet?

I was new to web building 6 months ago but learn very quikly. The guys on here are experts, but sometimes things that sound sensible to them are so confusing new developers.

It took me months of trying and searching around, but finaly got a 6 feild contact form up and running from my site with the help of perl and a script a loaded then altered to proccess the thing.

One web expert finaly gave me a very simple explanation of the proccess involved in sending a form from my website to get it and the info contained to my email box.

If you still need help i will help you and pass on what i learnt from months of asking, crying, giving up, reading and get confused with perl, library visits....and so on!

Just make sure your server supports CGI first, most do.

Geoff

ps: it is actually very simple.