PDA

View Full Version : Use Anchor with PHP?



earph
August 27th, 2003, 10:38 PM
After I submit my form I'm sending it to a thankyou page, but I'd like to goto a specific anchor on the page. Nothing I've done has worked yet. Any recommendations?

NOT WORKING


include'thankyou.php#anchorName';

Thanks!

Jubba
August 28th, 2003, 03:39 PM
header("Location: thankyou.php#anchorName");


include actually includes a file onto the page that you are looking at. Header(Location:) redirects...

earph
August 28th, 2003, 04:11 PM
Gotcha.... I appreciate it. I'll try it out tonight.

earph
August 28th, 2003, 07:04 PM
Yeah, that worked perfect. Thanks for the tip.