javascript - How to redirect to a page using PHP in one page website -
javascript - How to redirect to a page using PHP in one page website -
i have 1 page webiste www.yahavi.com (all pages in 1 html) in different pages referenced using div id (eg; #home, #contact ). after successful sign want direct user thankyou page id #thanku . how can using php script runs after form submission.
home url: www.yahavi.com/#home form @ : www.yahavi.com/#contact thankyou: www.yahavi.com/#thanku
i using header (location: /#thanku) in php doesnt work.
note: dont want finish new html page reload.
you can utilize javascript on php code this:
<?php <script> location.href="#thanku" </script> ?>
try that. hope helps.
update
if ajax instead, best. after signup, if user signups successfully, on javascript file can utilize location.href="#thanku".
for that, need ajax request in signup form.
javascript php jquery html html5
Comments
Post a Comment