Javascript (to send to multiple recipients)

  • ALD777
  • Newbie
  • Newbie
  • ALD777
  • Posts: 11

Post 3+ Months Ago

Hey all!
Does anyone know the javascript code for...

I have a form.
I want to set JS on it so that when someone chooses X campus from the drop down the form sends to site X and when they choose Y campus, the form is submitted site Y.

Any help would be greatly appreciated! :?
Thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Code: [ Select ]
<form action="none" method="post">
    <select name="action" id="action" onchange="this.form.action=this.value;">
        <option value="http://www.sitex.com/">Campus X</option>
        <option value="http://www.sitey.com">Campus Y</option>
    </select>
    <input type="submit" name="some_name" id="some_name" value="Submit"/>
</form>
  1. <form action="none" method="post">
  2.     <select name="action" id="action" onchange="this.form.action=this.value;">
  3.         <option value="http://www.sitex.com/">Campus X</option>
  4.         <option value="http://www.sitey.com">Campus Y</option>
  5.     </select>
  6.     <input type="submit" name="some_name" id="some_name" value="Submit"/>
  7. </form>
  • ALD777
  • Newbie
  • Newbie
  • ALD777
  • Posts: 11

Post 3+ Months Ago

Thanks for the info...

In addition that same form...
the client wants to see the campus populate the subject line or in a hidden field that will show up in the submitted email.

I tried to write some code (js)

Use in HTML?
<select name="campus" id="campus" size="4">
<!--<option>Select One:</option>-->
<option value="ABC_Charlotte">Charlotte, NC</option>
<option value="ABC_Durham">Durham, NC</option>
<option value="ABC_Greensboro">Greensboro, NC</option>
<option value="ABC_Winston">Winston, NC</option>
</select>
(((( change the above to letters a,b,c and d + change in form mail to correspond to var letters))))

Use in Script?
<script language=javascript>
function HideCampus(){
var a = abcCharlotte
var b =abcDurham
var c =abcGreensboro
var d =abcWinston
if (campus==a) { then “hidden campus value” =a)
}
else (campus==b) { then “hidden campus value” =b)
}
else if (campus==c) { then “hidden campus value” =c)
}
else if (campus==d) { then “hidden campus value” =d)
}

</script>

Doe you know the code for this function?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 55 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.