Jump to content


Photo

php mail


  • Please log in to reply
31 replies to this topic

#21 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 04:04 PM

Try this ok.

<?

if(! isset($_POST['emailaddress'])) {

?>

wildteen88 that why i said this ok.

from php version 4.2.0 but you couldnt use the $_GET[] and $_POST below version 4.2.0
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#22 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 04:08 PM

I guess you have got confused now. As you can use superglobals regardles of register_globals being on or off. Which is what I got confused about. I code with register_globals off anyway.

#23 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 July 2006 - 04:11 PM

Ok, I sitll don't understand why this isn't working, I saw some sample script and I tried this
"downloadhandler.php?redirect=dw/LDO150mA.pdf"

In here I had
"downloadhandler.php?redirect=dw/LDO150mA.pdf&emailaddress=$_POST[emailaddress]"
but nothing is working, it's still leaving my email blank, I was going to scrap this feature, but he said he needed it, he would call me in 30 minutes, I just need to figure this out, does anyone have advice on this.  I always try to use register globals off, but sometimes I am forced to because of yahoo, I try to deter my clients from using yahoo, they suck.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#24 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 04:16 PM

downloadhandler.php?redirect=dw/LDO150mA.pdf&emailaddress=$_POST[emailaddress]"

to

downloadhandler.php?redirect=dw/LDO150mA.pdf&emailaddress=$_POST['emailaddress']"

[' '] single quotes missing


sorry wildteen88 i got really confused ok.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#25 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 July 2006 - 04:25 PM

Someone has access dw/LDO150mA.pdf using $_POST[\'email\']

That is the output I am getting
inside the email
<?php

if (!$_GET['redirect']) exit('bad link');

$page = $_GET['redirect'];
mail("businessman332211@hotmail.com", "Asic Ip Download Access", "Someone has access {$page} using {$email}");

header('Location: ' . $page);
?>
That is exactly what I am using to process it, after I changed my line like you siad, but that output is all I get in teh email, this is the part that is confusing me.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#26 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 04:29 PM

try this ok.

downloadhandler.php?redirect=dw/LDO150mA.pdf&emailaddress=$emailaddress"


<?php

if (!$_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);
?>
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#27 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 July 2006 - 04:35 PM

Someone has access dw/LDO150mA.pdf using $email
That is my output in the email.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#28 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 July 2006 - 04:55 PM

Doesn't anyone have advice onthis

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#29 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 04:59 PM

downloadhandler.php?redirect=dw/LDO150mA.pdf&emailaddress=$_POST['emailaddress']"


emailaddress=$row['emailaddress'];
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#30 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 July 2006 - 05:05 PM

<a href="downloadhandler.php?redirect=dw/LDO150mA.pdf&email=$_POST['email']"
 class="n" target="_blank">ASIC IP LDO 150mA</a>
That is my link
<?php

if (!$_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);
?>
this is my handler.
There are 3 pages total
someone clicks on thelogin page, it comes up with a page, that is seperate from all these, with a form they can register
When they do, it takes them to download.php
at 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 address
so it comes through post over to the download.php page
then 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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#31 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 05:23 PM

<?php

if (!$_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);
?>
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#32 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 July 2006 - 06:06 PM

<a href="downloadhandler.php?redirect=dw/LDO150mA.pdf&email=<?=$_POST['email']?>"
 class="n" target="_blank">ASIC IP LDO 150mA</a> <br />

<?php

if (!$_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);
?>
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 wor
k
it kept returning errors and making the screen go white, so I said screw it, and just did it this way.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users