View Single Post
Old 10-28-2021, 11:30 AM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,117
Turning a 'submit' button into a URL?

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="javascriptstory.back();" />
</form>
__________________
NOTHING TO SEE HERE
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote