send from form?

Busy's picture

He has: 6,151 posts

Joined: May 2001

Hi all,
here is a quick and nasty form:

<Form method="post" action="mailto:email@address?subject=Something">
Title:  <select name="Title">
  <option value="">Title</option>
          <option value="Mr">Mr</option>
          <option value="Dr">Dr</option>
          <option value="Mrs">Mrs</option>
          <option value="Miss">Miss</option>
          <option value="Ms">Ms</option>
        </select><br>
       
Nickname: <input name="nickname" type="text" value=""><br>
Email address: <input name="Email" type="text" value=""><br>
Cat? <input type="radio" name="cat"><br>
or<br>
Dog?   <input type="radio" name="dog"><br><br>

<input type="submit" value="SUBMIT">
        </form>
'

This works, sends the info back to the email address but it displays as one line, like so in a attachment called 'POSTDATA.ATT':
Title=Mr&nickname=busy&Email=none&dog=on

Is there anyway I can include this info in the body of an email on seperate lines, I know the "&body" is to add a body to emails but am unsure of the extra bit.

cgi etc are out, can only be HTML, or Javascript etc

Busy's picture

He has: 6,151 posts

Joined: May 2001

Don't worry I figured it out, next time I'll do it when I'm awake Laughing out loud

For those that want to know what i was missing, or how I got it to work, it was easy

I missed out a few values and names

also the recieved part was fixed by adding enctype="text/plain" in the form tag, removed the subject part to the email address as I added it to another input tag

all done with HTML, no Javascript or anything else

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.