simple form question

They have: 34 posts

Joined: Oct 2001

hello-

i have a form which contains a text input field and a sumbit button. i want the submit button to send the text within the field (signup for newsletter) to a specific email address.

i would also like to have the form send a predetermined subject of "newsletter" to the specific email.

thanks for any replies.

Busy's picture

He has: 6,151 posts

Joined: May 2001

You dont mention whether it can be server side or client side, so'll I'll presume the worst Laughing out loud lol

something like:

<form method="post" enctype="text/plain" action='mailto:[email protected]?subject=Newsletter'>
<input type="hidden" name="from " value="web site">
....
...
</form>
'

This will just give you a text printout style with the inputs name= text given

Note the ?subject doesnt work on the older browsers

They have: 34 posts

Joined: Oct 2001

busy- thanks for the reply.

sorry i forgot to mention client/server side. i was hoping i could do it all on the client side w/o perl or php. so, will the code you gave me work all on the client side?

thanks again.

Busy's picture

He has: 6,151 posts

Joined: May 2001

that works off html - client side
php/perl etc is server side which is totally different, I can give you a php example as well if you want but your server has to have sendmail configured to beable to use it

They have: 34 posts

Joined: Oct 2001

thanks. this will work for now. down the road i will probably incorporate some php or perl to make the newsletter system more manageable.

thanks again.

They have: 34 posts

Joined: Oct 2001

busy-

i was wondering if you can give me that php form mail example? also, how do i know if my server has php enabled?
the help files say that they use php 4.0, but does this mean it is also enabled?

thanks again.

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.