So I have a form that I am submitting and the valueof the input button is "View Insight." When I submit the form using Request, I get a nasty string in the URL like Insight=View+Insight.
What I want it to say in the URL is "Insight=Confirmed". I tried using jquery to change the value of the button and it worked but you see it changing the value in the user interface. How do I change the value of what I want without showing the user?
Here is what I have so far:
JQUERY
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#savebtn").bind("click",function(){
$(this).val('confirmed');
});
});
</script>
HTML
<form action="confirm4.php" method="request">
<input type="submit" name="insights" id="savebtn" value="View Insights" />
</form>