Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

Button Automatically Redirecting Without Being Clicked

PHP Code

<?php 
<input type="button" name="submit" value="Sign Up" class="button btn-primary" onClick="<?php header("Location: https://link.com");?>"/> 

It doesn't even wait for a click, just redirects as soon as I open the page. Any ideas?

EDIT: FIxed it with:

PHP Code

<?php 
<input type="button" name="submit" value="Sign Up" class="button btn-primary" onClick="document.location.href='https://link.com'" /> 
Resident Writer for MyGamer.Com and Horrify.Net


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by Dale CarnegieMay 4, 2018 02:52 PM 7 170 May 4, 2018 02:52 PM
Last Post: Bluffer
[PHP] by Ice PoseidonAug 4, 2017 10:55 AM 2 188 Aug 4, 2017 10:55 AM
Last Post: Nachfolger
[Javascript]  by Mr ReddingtonDec 8, 2016 07:57 PM 3 172 Dec 8, 2016 07:57 PM
Last Post: D3xus