Is it possible to take a forms submit button and code it so that it acts like a url.
I do not think and 'onclick' element will actually work for what I need :/
I want to avoid using the form itself but still need it (data collection) and wanted to simply add a meta refresh to a page as if the button was clicked.
Nothing nefarious, just want the form to still count submit clicks in the database, without having to have the surfer click the submit button.
This is the form I'm using presently:
Quote:
<form action="vote.php?id=4" method="post">
<input type="hidden" name="confirmation" value="true" />
Are you sure that you want to vote for this?<br />
<input type="submit" value="Yes" /> <input type="button" value="No" onclick="javascript story.back();" />
</form>
|