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 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 Complete Forum Thread with Replies

Related Forum Messages:
Can You Send An Entire Webpage Via Email Using PHP?
If you go to File >> Send > Page via email

it will send a snap shot of the current page you are looking at via email.

can this be done via PHP (or another means) so that I can create a script that will email a webpage automatically to a chosen person?

View Replies !
Sending Entire Web Page To Email
Is it possible to send an entire web page to an email using mailto:person@blah.com function, with what has been typed in the text boxes. And if so what would the code look like.

View Replies !
Regular Expression Detecting Entire Page
I am making a flat file, static HTML search engine for a site. I
downloaded a script from the net and have been working with it for my
needs.

Everything was working OK with a few test Lorem Ipsum pages. But the
moment I try to search real data, fit hits the shan.

The script uses a regular expression to search through the files. And
for most of these files, the regular expression doesnt seem to pick up
the matches as it should, and for lack of a match, it outputs the
entire html page as a hit. The search word is on the page somewhere,
but it still outputs the entire page.

Allow me
--------8<----------------------------
if(preg_match_all("/((sS*){0,3})($keyword)
((s?S*){0,3})/i", $portion, $match, PREG_SET_ORDER));
{
if(!$limit_extracts)
$number=count($match);
else $number=$limit_extracts;

for ($h=0;$h<$number;$h++){ // no limit
if (!empty($match[$h][3]))
$text = sprintf("... %s<font
class='keyword'>%s</font>%s ...", $match[$h][1], $match[$h][3],
$match[$h][4]);
else{
//print_r($match);
}
}
}
--------8<----------------------------

There's the regex that looks through $portion, which is the strip_tags
version of the file's contents. And if I echo $portion right before
that line, I see the stripped code. However, when I get to the line
where it checks $match[$h][3] for the keyword that was searched for,
it craps out. Not 100% of the time, but most of the time. Im trying
to figure out details about these html pages, to no avail.
So as a result of failing that empty test, the entire html page is
dumped out as a search result.

Not being a regex expert, Ive had a hell of time troubleshooting. But
I feel the problem lies in there. Something with the regex not finding
the keyword correctly, or something.

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 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 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 !
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 !
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 !
Send Email Include Page With Dynamic Data
I want Users to fill in from. data go's to MySQl send email to user and myself containing "form tekst.

View Replies !
Send An Html Page To People On A Mailing List.
I am wanting to be able to send an html page to people on a mailing list. I have set it up so it sends $mailing_template which sends an html page.

Only, when it reaches the inbox it shows as straight html (un parsed) and not as the page. How can I set it to send it as HTML and not straight HTML code please?

View Replies !
How Can I Send Lots Of Data To A Printer Without Displaying It On The Page
I have a list of clients (about 50,000) that is about 500 pages long. To show this, I have a webpage that lists all the clients and pages them in increments of 100 clients per page.

I'd like to be able to print (to a phyiscal printer) the entire list of clients, but the problem is, I don't know how to do it without displaying all 50,000 records on the screen at the same time. This creates a serious memory problem when PHP tries to parse and display all of them at once.

Is there a way to somehow run the query and parse the results into a printer spool (like print preview) via PHP headers or something instead of displaying the output to the browser?

View Replies !
How Redirect A User To Another Page And Send Some Variable With The Post Method?
I make a user registration. It contains two/more page. First page is for official purpose. User ID, password and some other official information is in first page and user basic information is in second page. If user enter an user id that already exist in database then a message show the same page to change his user id otherwise page is redirect to second page and send user id, and other variable that was in first page.   My Code:

View Replies !
Browser Unable To Send Another Request While It's Downloading A File From PHP Page.
While I am downloading a mp3 file from php page, browser freezes and
is not able to send any request and get the response using ajax until
the file gets completely downloaded. As soon as the file downloading
finishes, the browser gets all the responses it is waiting for (which
are sent after the file download starts)....

View Replies !
Simulate Send Data With POST And Get Data From A Web Page (whith A Session)
I'd like to get text of a webpageB that I reach by putting
a login and a password in a webpageA.

I mean:
I'd like to get text of a WebPageB with a php script.
But before I can see WebPageB I have to autenticate myself
in a WebPageA writing my login and my password in a form,
the host recognise me and (by session) let me see the WebPageB.

The question is:
1)how to simulate send data (login an password) in form with a PHP script?
2)how to navigate in a Web usin the same session?

View Replies !
Getting The Entire URL
You know how someone submits a form, and it goes to process_form.php, and after processing, redirects it back to that page?

How can I get the URL of my page, and after the person submits the form, take them back? For example:

viewtopic.php?topic=32&post=4&id=33

Can I store that portion of my URL (along with all the variables)?

(I have heard of $_SESSION['url'])

View Replies !
URL Masking - Send A Page From Port 80 To Port 6999
I'm sure this has been asked before but I've just signed up to this
newsgroup and done a search but can't find anything. What I'm trying to do
is to send a page from port 80 to port 6999 but I don't want the :6999 bit
to show in the URL address field. Is it possible to either mask or hide
this within the header("Location:XXX") call?

In other words, if I enter http://www.mysite.com it finds the site using the
default port 80 but the information I have is actually on port 6999 so I'm
redirecting to http://www.mysite.com:6999 but I don't want the :6999 to be
displayed.

View Replies !
What Can Return The ENTIRE Url?
I'm looking for PHP equivalent to Javascript's location.href property. This returns the ENTIRE url (including any variables that might be submitted to a script). I've looked at phpinfo(), but I didn't see exactly what I am after. If the answer is the HTTP_POST_VARS variable, could someone please give me a simple example of how exactly this variable is to be used in code?

View Replies !
Capturing The Entire URL
Been playing around with capturing the entire URL. I dont have any problems
if it a file,
i.e. http://www.mydomain.com/somefile.php, I am running into problems with
this,
http://www.mydomain.com/test

This is what I use for "redirection" now (btw, it is IIS (Win2k) and PHP
4.3.2)
The test.mydomain.com is setup as a host header under IIS

$redirect = getenv("HTTP_HOST");

if ($redirect=="test.mydomain.com"){
header("Location:http://www.mydomain.com/modules.php?name=test");
}

The above code works fine. Redirects no problem.

However, I am trying to get this to do the same thing:
www.mydomain.com/test or www.mydomain.com/test/
and both would take you here:
http://www.mydomain.com/modules.php?name=test

I have tried every combination of the SERVER vars, but no luck.
I either generate a 404 or the test isn't part of the URL.

View Replies !
Get The Entire Request
how you can get PHP to give you the ENTIRE request, not just headers, but the entire request including post information as one big long string. I have looked at the apache handlers, but they aren't giving me what I need.

View Replies !
Okay To Urlencode() Entire URL?
I want to pass a url from one page to another and simply want to know if I can urlencode() an entire url. I've done some searching on the net and some say not to do so.(I'm pretty sure it actually is okay....)

So let's say I want to pass page1.php's URI to page2.php.

Using $_SERVER['REQUEST_URI'] I get page1.php's URI as seen below:

/people/profiles/profiles.php?pageNum_rs_profiles=1&totalRows_rs_profiles=13&searchInfo=johnny&do_search=Find

If I want to pass the above URI to page2.php, is this the proper way to do so?(Using urlencode to encode the entire above URI...) Code:

View Replies !
How To Parse An Entire XML Doc
I have a catalog of 20 items. In SQL I would SELECT * FROM catalog WHERE id = 10. Is this possible in XML? I've searched the web for examples but I've only found tutorials that show how to parse an entire XML doc.

View Replies !
Dump The Entire Db
I need to dump my entire db into a sql file (create + insert statments). Is there a short way to do it via PHP? If not, I probably have to do each table in the db, is there a way to get all the table names in the db (Assume I need it for several dbs so the script can't know the table names and number in advance).

View Replies !

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