View Single Post
Old 05-26-2011, 02:56 AM   PM User | #1
learninghard
New to the CF scene

 
Join Date: May 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
learninghard is an unknown quantity at this point
Question 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".
Code:
  ... <tr>
                <td colspan="2">Select the area:                  
                  <select name="dSac[emailto_txt]">
                    <option>----------------- </option>
          <OPTION value="sac@test.com" selected>SAC</OPTION>
          <OPTION value="grm@test.com"                    >test Card</OPTION>
          <OPTION value="compras@test.com"     >Comercial</OPTION>
          <OPTION value="diretoria@test.com"   >Diretoria</OPTION>
          <OPTION value="financeiro@test.comr"  >Financeiro</OPTION>
          <OPTION value="informatica@test.com" >Inform&aacute;tica</OPTION>
          <OPTION value="vania@test.com, marcel@test.com, Jordan@test.com" >Jurídico</OPTION>
          <OPTION value="marketing@test.com"   >Marketing</OPTION>
          <OPTION value="dp@test.com"          >RH</OPTION>                    
                </select></td>
              </tr>
              <tr>
                <td colspan="2">leave a text here.</td>
              </tr>
              <tr>
                <td colspan="2"><textarea  name="dSac[menssage_txt]" cols="75" rows="5" wrap="off"></textarea></td>
              </tr>
              <tr>
                <td width="80">&nbsp;</td>
                <td><input type="Submit" value="&nbsp;&nbsp;Enviar&nbsp;&nbsp;" /></td>
              </tr>
             </table>
            </form>
...
learninghard is offline   Reply With Quote