send mail php with external hidden link??

This is a discussion on "send mail php with external hidden link??" within the PHP Forum section. This forum, and the thread "send mail php with external hidden link?? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 28th, 2006, 10:48
New Member
Join Date: Nov 2006
Location: ss
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question send mail php with external hidden link??

Hi People,

I have a very simple PHP problem i need sorting!

I doing a 'send page to friend' php script and want to include a link to a page in the recieved email but have the link hidden (with a different name/url hidden) to a page.

eg. in php it would be:

Quote:
<a href="www.hello.com">hello </a>
here is the php script for the send mail:

Quote:
<?php

if (isset($_POST['submit'])) {
$sendername = $_POST['sendername'];
$senderemail = $_POST['senderemail'];
$recipname = $_POST['recipname'];
$recipemail = $_POST['recipemail'];
$custmessage = $_POST['message'];

$staticmsg = "Hi $recipname \n Your friend $sendername ($senderemail) thinks you'd be interested in seeing the following page from s: $urltosend \n They have added the following message: \n $custmessage";

$ipaddress = $_SERVER['REMOTE_ADDR'];

$subject = "$sendername has a page they'd like you to see";
$headers = "From: ss \r\n";
$headers .= "Reply-To: $senderemail";
dfdf
if (mail($recipemail,$subject,$staticmsg,$headers)){
echo "<p>Success. Your message was sent.</p>";
} else {
echo "<p>Your message could not be sent at this time. Go back to the <a href=\"$urltosend\">page you were previously browsing</a>?</p>";
}
} else {
?>
<script language="JavaScript">
<!--
window.resizeTo(500,500)
-->
</script>
<style type="text/css">
<!--
body {
background-color: #CC071E
}
#contents {
color: #000000;
width: 400px;
background-color: #CC071E;
}
.form {
font-family: Helvetica, "Helvetica Neue", Verdana, Arial;
font-size: 11px;
font-style: normal;
font-weight: normal;
color: #FFFFFF;
text-decoration: none;
width: 400px;
margin-left: 20px;
}
.logo {
top: 0px;
left: 0px;
width: 200px;
height:150px;
}
-->
</style>
<div id = "contents">
<div class = "form">
<form action="sendtoafriend2.php" method="post">
<p><img src="images/ss_logo.gif" width="196" height="98" /><br />
<br />
<input type="text" name="sendername" id="sendername" /> Your Name<br />
<br />
<input type="text" name="senderemail" id="senderemail" /> Your Email<br />
<br />
<input type="text" name="recipname" id="recipname" /> Friend's Name<br />
<br />
<input type="text" name="recipemail" id="recipemail" /> Friend's Email<br />
<br />

<textarea name="message" rows="5" id="message"></textarea>
Custom Message<br />
<br />
<input type="submit" name="submit" id="submit" value="Send" />
<br />
</p>
</form>
</div>
</div>
<?php
}
?>
Reply With Quote

Reply

Tags
send mail

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
xml & external link ahwell Flash & Multimedia Forum 8 May 6th, 2008 08:20
how to send auto email in mail box not in junk art PHP Forum 3 Jul 4th, 2006 16:56
visitors name not displayed in mail after filling in mail form made on earth PHP Forum 7 Nov 16th, 2005 22:43
Hidden forms and submission by link jakyra JavaScript Forum 12 Nov 25th, 2003 21:56


All times are GMT. The time now is 01:51.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43