Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- Prompting for a Subject using Mailto


rahmuss - 5:34 pm on Feb 6, 2012 (gmt 0)


Staffa,
Since your form is for use by only five people why not hard code Subject="whatever", so that they know that the email comes from one of the other four people, and add an extra row in your table where they can specify the real subject

I can't make it "whatever" (or anything static) because the subject will include the name as well as the date. Your second option, to add an extra row I can do; but how do I get it to use that input data as the subject? I guess that's what I'm confused about.

londrum,
cant you just change the form from POST to GET, and add a new input field with the name 'subject'
you'll have to remove the bit in the form's url where you've already put 'subject'

i think you'll have to send the message content as part of the URL as well, so you'll have to change the textarea's name to 'body'

I can add a new input field for Subject. I don't really understand how changing the method to POST will help, though I really don't understand POST very well. And if I name the field "body" will that automatically make the "&body" part be what they entered?


Thread source:: http://www.webmasterworld.com/html/4414306.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com