Redirect form after submit

Add the onClick values

onClick values

<f0rm target=”_blank” action=”https://website.com/action.php” method=”POST”>
<input type=”hidden” name=”fullname” value=”Sam”>
<input type=”hidden” name=”city” value=”Dubai “>
<input onclick=”window.location.href = ‘https://website.com/my-account’;” type=”submit” value=”Submit request”>
</f0rm>

*replace f0rm with form, I didn’t want the form to render on this website.

Isaac Adams-Hands

Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.

Follow @ twitter

Related posts

WordPress templates

I keep forgetting the code to create a custom WordPress template, so I’m adding it to my blog Gist

Namecheap’s free DYNDNS

Stumbled upon Namecheaps free DYNDNS service this morning, and I can’t be more impressed. All I did was buy a 0.66 cent domain Namecheap Enabled the Dynamic DNS in the Advanced DNS settings: Then added the client to my home media server: Windows: Direct UpdateMac: NC DNS Updater, IP MonitorUnix: DDClient , IPCheckOther: Java Dynamic… Read More