...

View Full Version : best way to create a message/email form



immedicable
04-23-2004, 01:12 PM
hi again,

i'm trying (and failing) to create a small form, basically a single textarea that:
a) submits on keypress (enter) but without having a submit button.
b) doesn't launch users default email program.
c) includes the user's email addy as a line within the txt file sent on submission.

also, this fits within an area 55px tall by 170px wide (not sure if that's really pertinent; i've assigned overflow:auto to scroll if they write more than the one or two lines that size allows, but the scrollbars take up a significant amount of real estate at certain resolutions - and as far as i can tell, css only allows for the recoloring of scrollbars and is incapable of adjusting the size). at the moment, i'm using an iframe whose src is page that's just one big form with the mailto: action, that's in a div (fixed position, overflow auto) with the css body scrollbar declaration in the src page so as not to affect any of the other scrollbars on the page that houses the iframe. i've included a submit button but styled it with css to render it 100% white and blend into the pages' background, as well as tucking it behind the scenes with an absolute positioning of top:-1000 (it's included solely to maintain the integrity of the enter keypress). this kinda works but i think there's a better way. if i understand correctly, php, html and js can all perform the operations needed for a form, so my question is:

how should i approach this? i'd like to keep it as simple as possible, without sacrificing any of the key's i mentioned above. thanks in advance... wasn't sure where exactly to post this one but you guys in the javascript forum have always been a terrific help. it's appreciated.

Willy Duitt
04-23-2004, 02:44 PM
b) doesn't launch users default email program.

You will need to use Server Side Scripting to satisfy this requirement.
Perhaps you should P/M a Mod to move this to the appropriate forum. ;)

.....Willy

immedicable
04-23-2004, 05:27 PM
wont let me nt :(

jbot
04-23-2004, 05:50 PM
IE supports "mailto:" as a legitimate action. whereas NN4 doesn't. not sure about latest NS6+/Moz, but if it does, then you won't need to use serverside coding at all. :thumbsup:

glenngv
06-07-2004, 07:23 AM
IE supports "mailto:" as a legitimate action. whereas NN4 doesn't. not sure about latest NS6+/Moz, but if it does, then you won't need to use serverside coding at all. :thumbsup:
Willy already quoted it. And I'll do it again.


b) doesn't launch users default email program.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum