jmas49 Posted September 29, 2009 Share Posted September 29, 2009 Hello folks! I have a question for you. I need to create a web page redirect with a form where the customer will need to enter a reference code. After they enter the code and click submit, I need for the code they entered to be appended to a specific website address, and then open that site. For example: The reference code is: ABCD1234 The site address is: http://www.[sITE].com The appended site address would be: http://www.[sITE].com/ABCD1234 Any help would be greatly appreciated! Link to comment https://forums.phpfreaks.com/topic/175964-need-to-create-a-redirect/ Share on other sites More sharing options...
mattal999 Posted September 29, 2009 Share Posted September 29, 2009 Just use: header("Location: http://www.site.com/".$_POST['refcode']); exit; Link to comment https://forums.phpfreaks.com/topic/175964-need-to-create-a-redirect/#findComment-927185 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.