html - How can I get '#' symbol in a PHP header(Location: ) request -
hi i'm trying implement simple contact form on website using tutorial - http://rosstanner.co.uk/2012/11/build-simple-contact-form-html-php-bootstrap/
trouble after user submits action need user redirected anchor id down bottom of page i.e. www.somepage.com/index.php#contact
the redirect this...
header('location: index.php?s='.urlencode('thank message.')) i've tried...
header('location: index.php?s='.urlencode('thank message.')'#contact') ...but no avail.
when try add make scroll down anchor bookmark browser hangs on contact-form-submission.php page (separate php page contact form logic)
i'm sorry if i've explained in convoluted. don't know php!
the correct syntax this:
header('location: index.php?s=' . urlencode('thank message.') . '#contact');
Comments
Post a Comment