General discussion

Locked

suggesting my site through forms

By ravikishore_g ·
i need to send the form to the email address given in the same form. it is like suggest this site to your friend. I need this to be done in plain html or javascript.
thank you.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

suggesting my site through forms

by mightyduk In reply to suggesting my site throug ...

try something like this:
<form name="recommend">
<input name="recipient" onchange="document.recommend.action='mailto:'+this.value;">
<input type="hidden" name="message" value="this is the message you are sending. Format of the email won't be theprettiest but it should get the message accross">
<input type="submit"></form>

I'd recommend some javascript validation for the email address, send me an email and i can give you that code. Not 100% sure if the above will work, but i think so.If not then you'll probably need to use cgi and some sort of send-mail system.

Collapse -

suggesting my site through forms

by ravikishore_g In reply to suggesting my site throug ...

The question was auto-closed by TechRepublic

Collapse -

suggesting my site through forms

by mightyduk In reply to suggesting my site throug ...

Thinking again about this. I think you want to send the email right out without the user's further intervention? This will not work with javascript because of security. And I believe microsoft is patching vbscript for the same reason. A client'semail system should not be used without their direct consent. I would recommend using a cgi-script and sendmail or the like.

Collapse -

suggesting my site through forms

by ravikishore_g In reply to suggesting my site throug ...

The question was auto-closed by TechRepublic

Collapse -

suggesting my site through forms

by ravikishore_g In reply to suggesting my site throug ...

This question was auto closed due to inactivity

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums