Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Send A Friend This Page


You know click a link and the visitor enters their friend's email and it sends them your page. I think my host has php support.




View Complete Forum Thread with Replies

Related Forum Messages:
Send To A Friend Help
Having trouble with the below code, Its ment to send the url of the page the html is on but its not, can anyone see why? html

<form action="somepage.php" method="post">
One Email per line<br>
<textarea name="emails"></textarea><br>
<input type="submit" name="submit" value="Send">
</form>


php

<?php
$email1 = explode("
",$_POST['emails']);
foreach($email1 as $emailaddr){
$email = $emailaddr;
$subject = "This Is Your Subject Line";
......................

View Replies !
Send To Friend
I'm trying to implement a php "send to friend" form that I found online, but the emails are not getting sent...

There's one other post in this forum about the very same script, and that guy had the same problem, but it turned out that his problem was related to the eail address he had been using to test the form. (The code is by BigLickMedia.com, BTW - their 'recommend site' code)

I reckon the problem has nothing to do with the code, but some Host Provider setting I'm unaware of.

In the config part of the code, I set the variable $webmasterEmail to a new email address I just created for my domain especialy to handle the 'Send To Friend' stuff, which is diverted to a gmail account. Am I being naive in thinking that the new email address should work immediately, or does it take a few hours/days for it to be 'active'?

I haven't set any spam filter yet, so that's not the problem.

Not knowing much about php (or web hosting in general!), I was wondering if there's some obvious 'setting' (for want of a better word - forgive my ignorance) that the online code neglected to mention I should 'set' with my host provider (Infinology.com). Some cgi-bin thing, php.ini, or some 'permission'...? I'm floundering here! :-)

I ask this vaguely in the hope that there is something obvious. Well, anyway, despite being 99% sure that there's nothing wrong with the code, here is the critical part, just in case: ....

View Replies !
Send This Article To A Friend!
"Send This Article to a Friend"

I've seen this type of functionality in some websites. I'll read an article and at the bottom is a way for me to enter an e-maill address and send this URL to a friend. My friend would then receive an e-mail from the website saying something like "Joe Schmoe recommends this page for you to read." I'd like to add this functionality to my site. Any recommendations how to do this?

View Replies !
Ecard - Send To A Friend
I am doing Ecards to some local bands, so, they have a music player and random info, I can do all that, but I wanted to put there a " Send a friend " section, so people could send the E-card to other friends so it would spread around faster Code:

View Replies !
Email This Page To A Friend
On some site you get an option to email the page that they're on to a friend. How would I go about doing this?

Or if better can someone tell me where i can down load the script for this.

Or maybe this is more of a perl/cgi question

View Replies !
Sending The HTML To A Friend - Ie Tell A Friend
I want to mail a dynamic page to a friend:

$fp = fopen ("need the full address", "r");
while (!feof ($fp)) {
$buffer=fgets($fp, 4096);
$message.=$buffer;
}
fclose ($fp);

this is where i have got so far - the problem is getting the full address including the parameters set.

is there a way of getting this and displaying it in the above code so the email can be sent and displayed as an html email etc.

View Replies !
Send This Page Script Used To Send Spam.
I had installed a simple php script (obtained for free from the web) that allows a visitor to forward a page to a friend. It worked great but now a spammer is using it to send thousands of emails. I have deleted the feature and also the php file but no successs. What can I do? Please help. While I have some responsibilities of a webmaster, my technical abilities are very limited.

View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:

View Replies !
Send Header Info To A Page, Retrieve Response And Send That As Header
I am sending a header to page.html from sender.php using fgets(). I am then trying to retrieve that page's response, and set that as a header in sender.php in order to set any cookies etc.... that page.html might want to set. Right now I am using the following code:

View Replies !
Send Email - Page Where You Enter An Email Address And Click Send.
I am interested in creating an "email -this" type ability for a website. I am sure most people have seen an "email -this story" type link that is standard on most news web sites. You click such a link and then it takes you to a page where you enter an email address and click send. The link for the story and the title are not editable. Does anyone know where I can find example code of how to do this with php, and any explanation of how this works.

View Replies !
Send Value From CSS Html Page To PHP Page
help me to find a way or script to pass value "digit" from CSS html page to php page which has funtion to accept value and search in database. for example, in CSS rollover image map. if a user select on particular place, that should call PHP page as well as send value to php page.

View Replies !
Send To Another .php Page
I would like to know how the "test.php" page should receive the following code:

<a href=test.php?vid="12345">Go![/url]

View Replies !
Send Var To A Page With Frames
I am trying to pass a var to a frame page with a page.When the page opens the $job_id var is not passed to the frame page within. Is the a way I can pass the $job_id var to the jobdetails frame within the main page.

View Replies !
Send Variable To Page
Is there any way to do this (below code) without using the POST method (ie. is there a more discreet method where the "?problem=true" doesn't need to show in the URL)?

if ($noProblems)
{
   header("Location: index.php");
}
else
{
   header("Location: index.php?problem=true");
}

View Replies !
Send An Entire Web Page
How to send an entire dynamic web page using phpmail()? Similar to mail this page or send to a freind link.

View Replies !
Send A Variable To The Next Page
i would like to send a variable to the next paage i am about to load bu
not using post eg. index2.php?a=0&b=1&c=2

how do i send them and how can i read them?

View Replies !
Variables Not Send To Next Page
I have a problem while building an intranet site for my work. When I try to send an variable called id to the next page as in : page.php?id=2 (where 2 is extracted from the database and placed in a while.

When I click the link the id is shown in the address bar, but the page isn't getting it. Anyone know how to fix this or what the problem is?

I'm runing Apache 1.3.33, PHP 5.0.5 and MySQL 5.0.15 with PHPMyAdmin (which is working properly) on a Windows 2003 Server.

View Replies !
PHP Send Page/information
i have a website and i have a log in system with php and mysql, that works fine however i want my registered user to be able to send me information by email, they'd fill in a text field then press send. I need this to send the whole page so that it gets their username in so people can't put a another persons user name.

View Replies !
Send A Variable Over To Another Page
I want to send a variable over to another page, but theres no form, i dont want to use session, and defiently dont want to use get!! so i was wondering would something like:

<?php
$_POST['someval'] = 12345;
header("Location: path/path/somefile.php");
?>

View Replies !
Send This Page Script
I want to add a 'Send this page to a friend' script to many pages on my site. I'm after a script which can automatically insert the current page URL in to the email that's sent. ie. I do not want a standard visit www.servername.com generic message and URL. Likewise, I don't want to manually customise the script on every page for every URL.
The URL needs to be custom for every page. Presumably a PHP script can insert the current URL.

View Replies !
Send Info Into Same Page
we can send info into same page like following index.php?do=1 we can get it

if ($_REQUEST["do"]==&#391;').

View Replies !
Select - Send The Value To Another Page.
In a form I have a control lsDocent. I want send the value to another page.
He send the second parameter 'code' but he send the string lsDocent to the
other page instead of the value of lsDocent. Code:

View Replies !
Do You Have To Send Headers Again On A Cached Page
I've got some dynamic pages on my site, so i've set php up to cache them in the normal way to speed up delivery.

but i was just wondering... do you have to include the headers again when it reads the cached page, or will the original headers become part of the cached page?

View Replies !
Send Contents Of Page In Email
is there not an easy way to simply send the contents of a page in the
body of an email? i.e. i have a report.php that pulls from a mysql db.
i need to be able to send the displayed file right in the body of the
email. can anyone help with this?

View Replies !
Send Email As Html Page
i need to be able to send an email back to a person once they have completed a form in the exact format of how they filled it in. ie, as a html page with all the text they entered in the text boxes and selected checkboxes, radio buttons, etc.

the problem is the page is very big and has many fields so i was thinking, on my action page i just include a template to achieve this.....and in the template can i do this type of thing: <input type="text" name="<php echo $txtAString ?> " size="12">

//which is the name of the text box on the entry form on the previous page ...will that get the text out of the previous page and put it in with the included template?

View Replies !
Send The Header To The Client Only At The End Of The Page?
a quick question.
is it possible to send the header to the client only at the end of the page?
I mean when the build of the page by the PHP server is finished.

This is because I want to redirect the user to a error.php page each time an
error occurs.
But when doing that, I get an error saying that the header has already been
sent.

View Replies !
Send Users To Thankyou Page
I have a form that when properly filled out I would like to send the visitor to a new page. Not an include but a new page that thanks them for filling out the form and then redirects them to the site. I have found that goto is not included in PHP. Most examples I have found have many lines of code and seem so complicated. Is there a way to have  this done simply?

View Replies !
PHP Send Information/page To Email
i have a website and i have a log in system with php and mysql, that works fine however i want my registered user to be able to send me information by email, they'd fill in a text field then press send. I need this to send the whole page so that it gets their username in so people can't put a another persons user name. Code:

View Replies !
Curl :: Send XML To A HTTPS Web Page
I'm using PHP to send XML to a HTTPS web page. Everything works fine but can someone help me to remove what I presume is the Curl transfer stats. In the middle of the web page I get the following:

% Total % Received % Xferd Average Speed Time etc etc

$ch=curl_init($url);
curl_setopt($ch,CURLOPT_VERBOSE,0);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,1);
curl_setopt($ch,CURLOPT_POST,0);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_NOPROGRESS,0);
curl_setopt($ch,CURLOPT_HTTPDHEADER,$request_post);
curl_setopt($ch,CURLOPT_POSTFIELDS,"xmlstream=".$request_xml);
$request_result=curl_exec($ch);

View Replies !
Send A Page To The User's Printer
A little more detail: I want the user to be able to press a form submit button and for a script to fetch member information for multiple members from the database and send the information to the printer to be printed so that each member has its own printed page.

Does that make sense? I know I could do this by listing all the member details on one page complete with page breaks and getting the admins to print the page, but would prefer to just send the data to the printer.

I've tried researching on the net, but haven't come across a solution yet, which probably means I can't do it, but thought I would ask anyway.

View Replies !
Form Without Having To Send The Page Using Post Or Get
What I want to achieve is that when you type in one textbox it appears in the other textbox live without having to send the page using post or get. Code:

<form id="form1" name="form1" method="post" action="">
<label>
<input name="input" type="text" id="input" />
</label>
<p>&nbsp;</p>
<p>
<label>
<input name="output" type="text" id="output" />
</label>
</p>
</form>

how do i make it so that if you type in input, it automatically displays in output?

View Replies !
Send Data To A New Page From Submit
I just posted a question to the Javascript area, but was advised to check this forum for PHP... I have no clue where to start as I do not know any PHP (I have seen it, but have never programmed with it).

Basically what I want to do is have 3 select lists, where the user selects their birthdate (one select list for day, one for month and one for year), then they click on the submit button,

which needs to take them to the relevant page for their star sign. Below is the javascript post I made that has the javascript code to make a javascript pop-up telling the user whattheir star sign is. Code:

View Replies !
Tool To Send A Complete Page
I know how to use mail() function and it work fine with me but I am wondering if there is a tool or a way to just pass the the desired page to send to mail address with all its content (graphics+HTML+PHP).

View Replies !
Send An Array From One Page To Another Using Sessions
Is it possible to send an array from one page to another using sessions. If not is there a better way? without it being a global.

View Replies !
Friend Classes
Now that PHP5 has proper scoping for class properties and methods, I've
been looking in vain for friend classes, or wondering if there's another
way to achieve this effect:

class A {

protected var $v1;

....

}

class AHelper {

....

function ....
{

....
$helper = new AHelper ( ... );

....
if ($helper->v1) ...

}

So A has a property which really is not supposed to be public, but
AHelper (which does not inherit from A) has a special relationship with
A and wants to be able to delve inside it.

Note that just providing a public accessor won't help: it's logically
the same as making the property public.

C++ manages this by having 'friend classes' - classes which are allowed
inside a class even though they are not derived from it.

I suppose I could write a public accessor method which takes its caller
as an argument and checks its type before it will go ahead and fetch the
value; but that's inelegant, heavy, and only takes effect at run time.

Has anybody got any better suggestions?

[I see somebody asked the same question two weeks ago on faqts, but did
not get an answer)

View Replies !
Friend System
I want to display the friends and their pictures as well as links to their page with their friends on that page. But the design of my page only allows 3 thumbnails to be displayed Code:

View Replies !
Friend Network
Does anyone have any idea on how to manage a network where people can search users in the database and add them as a friend.

I have an idea on how to search for other users but then to save them as friends in the db I have no clue how to even start. Can anyone give me a suggestion on how to start or show me anywhere that I might find some useful information at?

View Replies !
Tell A Friend Script.
I am using the "Tell A Friend" script below. It works well. My problem is that the script will send an email if the form is filled in or not (upon pressing the submit button.) How can I make sure the visitor fills in the form? Code:

View Replies !
Send Data To Print One Page At A Time
I currently have a script together that will display one record per
page and allow the user to manually click through pages to view the
next record. How can I translate this to printing the data? I want
to be able to print the data one page at a time, but only send one
print job to do this?

I have never done this before, but would imagine it is possible....

View Replies !
How Does One Send A Large String As A POST To Another Web Page?
If I've a big string and I want to send it to another web page as a GET
request, I just use file(). I've done this often.

But what command do I use when I want to send the same string as a POST
request?

View Replies !
Using XML To Send Info From The Web Page To MySQL Database.
I am trying to undestand XML and the resion for it and if i should be using XML to send info from the PHP web page to mySQL database.

if so how would i send for example
$xml = mysql_query("INSERT data WHERE stuff = stuff");please excuse the bad code.

View Replies !
How To Send The User To The Page Is Using The Header() Function.
I am writing a page with sessions. At the start of every page I check to make sure that the user actually has a session by checking for some SESSION variables. On one of my pages I have a form that is to add guests for an event.

I have no idea how many guests a particular member is giong to bring and the number of guests is not limited. So to save myself time I wrote a form that will allow you to add one guest and then hit add guest.

This will save that guest to the guest table in my MySQL database but then I want to reload the page to have them add another guest. The only problem I am having is that the only way I know how to send the user to the page is using the header() function.

This is not working because I have already output data. Is there a better way to do this so that I can one form and not have to have a form input for guests up to 20?

View Replies !
Send File & Return To Previous Page
The following script sends a file to a given email along with a message.
I am posting the file to the script as a query string, eg. I link to script like this:

<a href="php/sendfile.php?remote=sendfile/abc.pdf">receive pdf</a>

My question: How can I return to the original page (the page which links to the script) instead of returning to the script after the file has been sent successfully?
Could header( "Location: be used in combination with javascript:history.go(-1) ?
If so where would it be placed in the script? Code:

View Replies !
Confirm Page - Send POST Vars On?
I am attempting to change around a payment system, which books users into an event. The user is asked for their details in a form, which is checked for valid data and then passed to a confirm page.

The confirm page then passes all data to a payment gateway using a POST form. If payment is approved, the gateway sends a (hidden) GET url to the server confirming the order. The order is sent in this url.

However, the new system is passing much more information to the payment gateway, which will not handle the amount of data to send in a GET back to my server. Code:

View Replies !
Can Php Do This? Email A Friend An Article.
I've seen these scripts that allow you to email a friend an article, which is basically looks at the current url and emails it to the friend.

View Replies !
Email To Friend Link
How can I add one of those 'email to a friend' links one my pages? I am not sure how to go about it.

View Replies !
The Server - Enemy Or Friend
how to write my webpages as there is a lot of code reuse. In C++ I would include many files to a page, making many functions accessible to them, thus reusing code efficiently. This greatly speeds up development time and perhaps only slows compilation time by a bit. In Php, however, I am afraid this might slow down the server.

The ugly and maybe faster for the server way: Copy paste a lot of code and modify small parts. (Example: I have many pages dealing with text input forms - same structure, only different names to forms). The nice clean but maybe slower for the server way: Create functions that generate the desired html code.

As well as include some of my php function files I might not use in some pages. I would go with option 2 if I only knew how much extra work is there for the server. Is this a consideration? When a website has 10 users this would not matter. But what if there are a thousand users? How much of an issue is this on the long run?

View Replies !
Email-a-friend Feature
i am considering adding a feature to my project that will allow users to send an email to a friend which contains a link to the current page. i've seen this in many places on the internet such as msnbc.com, etc.

the user will be able to enter a friend's email address and write a short message. most of the email message (a greeting, a link, some text) will be beyond the user's control. but they will be able to type a short message. do spammers generally attack this kind of feature? in the event it does get attacked, is there any reliable way to detect spamming like screening by IP or something?

View Replies !
Forwarding Email To A Friend
I am making a html mailer for one of my clients for them to distribute to people in their database, the problem is that they would like a forward to a friend option at the bottom of the email where the person reading it can input another email address, click submit and it is forwarded on.

I am not too convinced that it can be done as when the email is viewed it is on the users machine and not the server, and i wouldnt have thought that you could submit a form to a remote server? Does anyone have any information on this?

View Replies !
Making A Friend System
I have already created a script that allows users to join the site, and they can update their profile information and edit a photo of them self. However, I am stumped as to what to do about a friend system. I am thinking that I need a whole new table called "friends", but then I am not sure what to do about the different columns and such.

View Replies !
Refer A Friend Code
I know this is a php forum, but I find this forum the most helpful and it seems to have very intelligent people who actually help. Simple HTML would be the best. I was wondering if anyone knew any simple code in order for me to have a "Refer to a Friend" link on my page. I can find ones on the net but they send you and your customers spam e-mail.

View Replies !
Send A User To A Page Opened By The Secure Site
I want to send a user to a page opened by the secure site that will ask them for their credit card number (I will then store the number temporarily in the database). What must I do that brings the page into "secure" mode where the lock is displayed at the bottom and the user feels "secure" in giving their credit card number.

I can pull the same page up on either site as they point to the same directory. How can I block pulling up pages that I want to be "secure" on the unsecure address?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved