redarrow Posted July 17, 2006 Share Posted July 17, 2006 try this ok.downloadhandler.php?redirect=dw/LDO150mA.pdf&emailaddress=$emailaddress"<?phpif (!$_GET['emailaddress']==$emailaddress) else {echo "bad link";exit;};$page = $_GET['redirect'];mail("businessman332211@hotmail.com", "Asic Ip Download Access", "Someone has access {$page} using {$email}");header('Location: ' . $page);?> Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted July 17, 2006 Author Share Posted July 17, 2006 [code]Someone has access dw/LDO150mA.pdf using $email[/code]That is my output in the email. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted July 17, 2006 Author Share Posted July 17, 2006 Doesn't anyone have advice onthis Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 17, 2006 Share Posted July 17, 2006 downloadhandler.php?redirect=dw/LDO150mA.pdf&emailaddress=$_POST['emailaddress']"emailaddress=$row['emailaddress']; Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted July 17, 2006 Author Share Posted July 17, 2006 [code]<a href="downloadhandler.php?redirect=dw/LDO150mA.pdf&email=$_POST['email']" class="n" target="_blank">ASIC IP LDO 150mA</a>[/code]That is my link[code]<?phpif (!$_GET['redirect']) exit('bad link');$page = $_GET['redirect'];$email = $_GET['email'];mail("businessman332211@hotmail.com", "Asic Ip Download Access", "Someone has access {$page} using {$email}");header('Location: ' . $page);?>[/code]this is my handler.There are 3 pages totalsomeone clicks on thelogin page, it comes up with a page, that is seperate from all these, with a form they can registerWhen they do, it takes them to download.phpat the top of download.php it checks to make sure they came from the other page, then it emails all the registration information. Then he wants for each and every link they click on it emails him again, with the pagename and the email addressso it comes through post over to the download.php pagethen they click on the link and it takes them to the processor, does anyone see why this might not be working, I have tried every single idea I have ran across here and more, nothing is pulling my variable information through that link. Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 17, 2006 Share Posted July 17, 2006 <?phpif (!$_GET['redirect']=='dw') exit('bad link');$page = $_GET['redirect'];$email = $_GET['email'];mail("businessman332211@hotmail.com", "Asic Ip Download Access", "Someone has access {$page} using {$email}");header('Location: ' . $page);?> Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted July 17, 2006 Author Share Posted July 17, 2006 [code]<a href="downloadhandler.php?redirect=dw/LDO150mA.pdf&email=<?=$_POST['email']?>" class="n" target="_blank">ASIC IP LDO 150mA</a> <br />[/code][code]<?phpif (!$_GET['redirect']=='dw') exit('bad link');$page = $_GET['redirect'];$email = $_GET['email'];mail("businessman332211@hotmail.com", "Asic Ip Download Access", "Someone has access {$page} using {$email}");header('Location: ' . $page);?>[/code]I figured it out myself that time, I started thinking you can't pass a php variable straight into the middle of html somewhere, I tried doing this with <?php echo " "?>with it written out there, inside the link, but it didn't workit kept returning errors and making the screen go white, so I said screw it, and just did it this way. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.