frizzo Posted January 26, 2008 Share Posted January 26, 2008 I want to add another field to the post of this header redirect. header("Location: http://......./?detail=&email=" . $_POST["email"]); To add a "name" field, for example. How can I do that? Thanks. Link to comment https://forums.phpfreaks.com/topic/87849-solved-adding-extra-fields-into-a-post/ Share on other sites More sharing options...
revraz Posted January 26, 2008 Share Posted January 26, 2008 Just like you added &email BTW, you know detail= nothing in that URL right? Link to comment https://forums.phpfreaks.com/topic/87849-solved-adding-extra-fields-into-a-post/#findComment-449396 Share on other sites More sharing options...
frizzo Posted January 26, 2008 Author Share Posted January 26, 2008 That's where I get confused. Like this? header("Location: http://......./?detail=&email=&name=" . $_POST["email"]); . $_POST["name"]); Yea, the URL and detail were removed to simplify the code. Link to comment https://forums.phpfreaks.com/topic/87849-solved-adding-extra-fields-into-a-post/#findComment-449397 Share on other sites More sharing options...
revraz Posted January 26, 2008 Share Posted January 26, 2008 Not sure what you want detail= to be, but for email and name: header("Location: http://......./?detail=&email={$_POST['email']}&name={$_POST['name']}"); Link to comment https://forums.phpfreaks.com/topic/87849-solved-adding-extra-fields-into-a-post/#findComment-449399 Share on other sites More sharing options...
frizzo Posted January 26, 2008 Author Share Posted January 26, 2008 That worked out great. Thanks a bunch. I am passing form data to Clickbank, so ?detail= is for the product detail. Link to comment https://forums.phpfreaks.com/topic/87849-solved-adding-extra-fields-into-a-post/#findComment-449401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.