Roger Huston Posted May 15, 2009 Share Posted May 15, 2009 Hello, I am trying to hack some PHP code. I am new to PHP and I am having a difficult time accomplishing a very simple task. I have a form with two buttons, one for Trial, the other for Subscription. Once either button is pushed, I verify a form and send email. I then want to route the person the appropriate next page: switch($submit) { case 'Trial': include("program_registration_success.htm"); break; case 'Subscription': include("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XXXXXX"); break; } I have also tried: case 'Subscription': header("Location: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XXXXXX"); break; The latter approach I prefer since I can see the URL change. However, I seem to have triggered something where Norton Anti-Phishing screen comes up. This is obviously not something I am trying to do. Does anyone know why this is triggered? What is the proper PHP way to go to a new page? Thanks, Roger Link to comment https://forums.phpfreaks.com/topic/158336-going-to-a-new-page-in-php-causes-norton-anti-phishing/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.