![]() |
need some help with form
hi im kind new to codes and im starting get confused ,
how can i get the option selected and send at end of message of form on that code? example: if option selected is "<OPTION value="grm@test.com" >test Card</OPTION>" this fomr will send a email to that value ,but i want but put at end of "menssage_txt" or at end of email that a text like this "option selected was test card". :confused: Code:
... <tr> |
Not quite sure what you are after but the select name value will be set to the value of the selected option. Are you using a scripting language after the form is submitted?
For example in php it would be something like $email_text = mysql_real_escape_string($_POST[dSac['emailto_txt]']); HTH |
If this is for a "real world" application, are you sure you want to expose email addresses in your html?
Email address harvesters (bots) will swallow those up very quickly and say "YiuUUuumy - thank you very much". Why not have some other values like company names, or whatever, as the option values and then when the selected option is sent to your server side form processing script you can get the associated email address for the selected option from a database, array, text file or whatever and then send the email with its message to the email address. |
Quote:
|
| All times are GMT +1. The time now is 11:51 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.