Hello, I have the following script, which is giving me problems. As you can see, it is a form submission, which redirects to another form submission (the "redirect" variable). However, the = signs are acting up. The problem is that it wants to redirect to "http://probuilderplus.com/LeadInterface/?memberid" because it thinks the rest are additional variables, not part of the url to direct to. I hope my description of the problem makes sense. Thanks for any help... ~Adam <?php header( "Location: http://www.aweber.com/scripts/addlead.pl?meta_web_form_id=1185610005&unit=natebianco&redirect=http://probuilderplus.com/LeadInterface/?memberid=395209&fname=".$_POST["FIRST"]."&lname=".$_POST["LAST"]."&email=".$_POST["EMAIL"]."&phone=".$_POST["PHONE"]."&ipaddress=".$_SERVER["REMOTE_ADDR"]."&leadprovider=MyAuto&meta_adtracking=MyAuto&meta_message=1&meta_required=from&meta_forward_vars=0&name=".$_POST["FIRST"]." ".$_POST["LAST"]."&from=".$_POST["EMAIL"]."" ) ; ?> PHP:
I tried replacing all of the & and = in the redirect url with their html equivelents, but then I was redirected to http://probuilderplus.com/LeadInter...sage=1&meta_required=from&meta_forward_vars=0 which didn't work either.
What I think I need is a way to send the redirect url variable through the aweber system without it being in a format that aweber interprets as variables for it's use. Other than doing a mod-rewrite on the other end so that the url is a static page, I can't figure it out. I guess I could use a cookie to pass the redirect url info, too, huh?
Reference this thread: Parsing URL Your solution is to urlencode() or rawurlencode() the URL parameter (which is itself an URL). You'll have to use PERL to URL decode it though... Bobby