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("[email protected]", "Asic Ip Download Access", "Someone has access {$page} using {$email}");header('Location: ' . $page);?> Link to comment https://forums.phpfreaks.com/topic/14836-php-mail/page/2/#findComment-59478 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. Link to comment https://forums.phpfreaks.com/topic/14836-php-mail/page/2/#findComment-59480 Share on other sites More sharing options...
Ninjakreborn Posted July 17, 2006 Author Share Posted July 17, 2006 Doesn't anyone have advice onthis Link to comment https://forums.phpfreaks.com/topic/14836-php-mail/page/2/#findComment-59491 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']; Link to comment https://forums.phpfreaks.com/topic/14836-php-mail/page/2/#findComment-59494 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("[email protected]", "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. Link to comment https://forums.phpfreaks.com/topic/14836-php-mail/page/2/#findComment-59498 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("[email protected]", "Asic Ip Download Access", "Someone has access {$page} using {$email}");header('Location: ' . $page);?> Link to comment https://forums.phpfreaks.com/topic/14836-php-mail/page/2/#findComment-59503 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("[email protected]", "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. Link to comment https://forums.phpfreaks.com/topic/14836-php-mail/page/2/#findComment-59537 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.