Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reply email from input value javascript

Status
Not open for further replies.

jurros

Programmer
Feb 14, 2005
13
NO
From the code bellow i get a mail everytime a user asks me a question. But i also want to make an auto reply to the user, by using the same action with just changing the email to id=epost value.
Help any 1?

Code:
TABLE id=id_matrix>
<TBODY>
<TR>
<TD vAlign=top><SPAN>Fornavn:</SPAN></TD>
<TD vAlign=top><INPUT id=Fornavn size=50 name=Fornavn></TD></TR>
<TR>
<TD vAlign=top><SPAN>Etternavn:</SPAN></TD>
<TD vAlign=top><INPUT id=Etternavn size=50 name=Etternavn></TD></TR>
<TR>
<TD vAlign=top><SPAN>Epost:</SPAN></TD>
<TD vAlign=top><INPUT id=Epost size=50 name=Epost xsitype="email"></TD></TR>
<TR>
<TD vAlign=top><SPAN>question:</SPAN></TD>
<TD vAlign=top><TEXTAREA id=Sporsmaal name=Sporsmaal rows=5 cols=50 required="True"></TEXTAREA></TD></TR>
<TR>
<TD vAlign=top>&nbsp;</TD>
<TD vAlign=top><INPUT onclick=return(false) onmousedown=jalle() type=submit value="submitting" name=FormControl:_ctl10 method="" action="[URL unfurl="true"]http://localhost/sql_mailto:?to=email&amp;from=ikkesvar@email&amp;subject=my[/URL] subject"></TD></TR></TBODY></TABLE>
 
If you want a proper auto-reply with a custom response message, then you'd need to do this server-side... If you change the param in the code above, they'll simply get a copy of their own message (which IMHO is not very helpful).

P.S. You should try validating your code - it looks a right mess. Also learn to code without using tables for layout - it's so 1990s.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hello

Iknow its a mess. The real code is not like this :)
table must stay :(. Thing is that i cant get the value out from input id=epost and merge it onto the action.

Still im trying to solve that with making an javascript that responds onmouseclick and that it will auto generate another email that will be the feedback....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top