2015-02-17, 05:20 PM
I am having a bunch of problems with this redirecting to "Additional Pages 404 Error"
I want the selections to send them to a url / PM preset message.
I want the selections to send them to a url / PM preset message.
<script>
jQuery( document ).ready(function( $ ) {
$( ".go-btn" ).click(function() {
// Grab text from select boxes
var firstSelection = $( "#selection1 option:selected" ).text();
var secondSelection = $( "#selection2 option:selected" ).text();
// Set URL, change as necessary
var url = "http://chillforum.net/private.php?action=send&uid=9&subject=" + firstSelection + "&message=" + secondSelection;
// Redirect
window.location.href = url;
});
});
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<form>
<div class="selCont">
<h2>Award Request Form</h2>
I'm requesting:
<select id="select1">
<option value=" " selected="selected">- Select -</option>
<option value="1">HackForums Award</option>
<option value="2">Old Phag Award</option>
<option value="3">Bitcoin Award</option>
<option value="4">Weed Award</option>
<option value="5">Rich Dawg Award</option>
<option value="6">Referral God</option>
<option value="7">Cool Kid Award</option>
</select>
Proof or Reasons you deserve the award.:
<select id="select2">
<option value=" " selected="selected">- Select -</option>
<option value="1">This reward please</option>
</select>
<button class="go-btn" type="submit">Go</button>
</div>
<div id="selected"></div>
</form>