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.





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

Related Forum Messages:
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"]==Ƈ').

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 !
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 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 !
Email Me This Info Page From A Order Confirmation Page?
How do i make a "email me this info" page from a order confirmation page? Basically someone enters some info in a form, then on submission is comes to my email. After submission, i want to have a text area where they can enter an email address to have the info emailed to them if they wish. You can see the page here, you have to enter info first, the email nbox on the second page (process.php) is non fuctional.

View Replies !
Header Redirects Me To A Blank Page
Ive a problem with the command.

header("Location : index.php3") , it works on PWS , but on Apache it redirects me to a blank page (and no errors ).

View Replies !
How Does VBulletin Remember The Page For Redirects?
I noticed that if you're not logged in and you try to reply to a thread, you can log in and it takes you right to the reply. It looks like the login form save the referring page, but how does it doe this? Does it rely fully on HTTP_REFERER or is there a backup plan if this doesn't work?

View Replies !
Google Page Rank And 'header' Redirects
If I have a links page that uses php header calls,
for each link, to jump to an external page, does
Google see those links as "internal to my site"
or do they get counted as links to the redirect?

IE: people ask me to exchange links all the time.
Sometimes (usually not) I do it, but always with a
link to in interal-to-my site file that has a

header("Location: http://someothersite.com");

So, in other words, in Google terms, do those
people get the page rank credit they are seeking,
when I do it that way?

View Replies !
Problem Using Header Redirects In Error404 Page
I'm getting a strange problem when using header redirects in my error404 page. This is the code on the 404 page;

<?php
$location = 'http://' . $_SERVER['HTTP_HOST'];
header("Location: $location");
exit();
?>

which should redirect me to the homepage. But all I'm getting is this output.

<html><body></body></html>

I'm trying to get an intelligent search system in place based on the work of David Skalar. It works sweetly locally but when live all my redirects fall over, producing the output above.

View Replies !
Redirects The User Back To The View Page
i am facing a strange problem of redirection. After the user fills up the form, i submit the data to save.php file and at the end i have a header which redirects the user back to the view page.Below is the code of save.php: Code:

View Replies !
Make A SESSIONS To Be Carried From Page To Page Throughout The Site.
I am working on a site and I need to make a SESSIONS to be carried from page to page throughout the site. My question is the site i am working on doesn't require login or anything so how I can register the SESSIONS as?

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 !
PHP Sessions Not Carrying From Page To Page
I have a website that allows a user to sign up. Then they can login. Now when they login it creates a session in the C:PHPsessiondata but once it loads a new page.. The session doesn't carry over to it. IT just reloads the login page.

View Replies !
Sessions Expiring From Page To Page
I just installed a site on a client's server.  I'm using a session based login, and have the session_start() at the top of the pages I need.  However, when I first log in, the session variables I register are all there, but when I click on any page, they are gone. Does anyone have a clue as to what might be set that's cuasing this?

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 / Redirects And Frames
I am trying to load a page into an <iframe> and attempting to stop the “framecontent.php” page from loading on its own i.e. not in the frame unless the var $textonly is found then I will load a text only menu.

I do not want to use Javascript, as the text only version will be run without JS or CSS. When I run the code it works to a point, when I open up the framed paged in a new window it does not re-direct, as it should, although I have had it doing so at the cost of some other code area not working.

I have got myself into a bit of a mess here and had it working but at different levels from the “framecontent.php” looping a redirect, the ”framecontent.php” page running without the frame when it shouldn’t and all sorts of issues.

I do not want to send a query string to the “framecontent.php” other than $textonly as and when needed as the “framecontent.php” would be able to be loaded other wise when it shouldn’t.

It would be easier for you guys to save these pages to your local PHP server if you have one to see how this breaks.

I know my code is not as logical as it should be, been trying this for a few days now =/ I have attached the files as is with a txt extension for obvious reasons.

View Replies !
Get Info From A Html Page With Php
im looking for a way to get info from a html page in php i have a code that was sapose to work but no longer does any one have any ideas on how to make it work? here is the Code:

View Replies !
Sending Page Info
for several different .php files (file1, file2, file3 ...) i want to have page numbering, ie, this is page 1, this is page 2... the files are accessed in different order

order 1: file1, file2, file3
order 2: file2, file3, file1

but the page numbering should always be 1, 2, 3 regardless of actual file order. any ideas how this can be done?

View Replies !
Passing Info From One Page To Another
I have a dynamically generated list of check boxes with ids email1, email2, up to the end of the list of addresses. This list is then passed to the next page where all the addresses are concatenated and added to a database. At least that's the theory. I can't figure out how to dynamically get all the $_POST[emailx] variables, with x being 1, 2, to the end of the list.

View Replies !
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.

View Replies !
Opening A Page To Display The Right Info
I'm making a website where registered users can upload a photo as well as information. The main page will display all of the users' photos. When user1 clicks on, say, user5's photo i want a page to open up and user5's information. How do i do this?

Every user has a username stored in the database along with their information and the url to their photo. Code:

View Replies !
Reading And Extracting Info From Another Page?
How would I extract some info from another site and then display it on my site?

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !
Parsing Info From Other Page (method POST)
- i want to get some info from the page XYZ to my page. XYZ page has a FORM where you can select DAY, MONTH, YEAR and you get the info about a day you selected.

- now, if i want to grab the info from let's say 20. august 2002 my url will look like this: http://XYZ/file.php?day=20&month=8&year=2002.

- THE PROBLEM is, their form has the POST method, which means, if i want to direct link the 20 august, it will bring me to the FORM page and not to DATE page.

is there any ways to bypass this?? I REALLY NEED THAT INFO?!

View Replies !
Dynamic Content - Writing DB Info To A Page
I'm writing a website that works on similar lines as a dating site, where end users can enter their details and what they want to sell, which is then submitted on to a webpage, any people that are interested in that product, contact us and we then pass the lead to the person who is doing the selling. So basically teh site is acting as a middle man.

I have done the database bit where the end user enters his details, we get emailed his details and his id (which is a an auto increment field) then there is a page called view.php which pulls up his details on a web page and there is then a submit and decline button. Teh decline button is the easy part, but the bit that I'm stuck on now is the submit part. And thus here is my question how do i write information that is held on a database to a webpage. But this webpage has to ADD and and not OVERWRITE what is already there as we want to create a listing? Code:

View Replies !
Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example:

www.mysie.com/a.html
www.mysite.com/b.html
www.mysite.com/c.html
www.mysite/x/y/z/mainpage.php

Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?

View Replies !
HTML Presentation Page For Uploaded Info?
I've seen a lot of posts about uploading files, but not much about what happens afterwards. Can someone point me to a tutorial, post or book which will help me solve this problem:

I'd like to have a form where users can upload a photo, add a short bio, put in some contact info, and have all of this information stored in a database (natch).

Then I'd like for this form to take this user's data and put it into an html presentation template. Ideally, members would sign in and be able to modify their own profiles as well as view other profiles.

View Replies !
Passing This Radio Button Info To New Page.
I have my users choosing from several radio buttons on a page(page1). When they click "submit" they should be given a table of results on another page(page2). Depending on which one they choose an X will appear in the correct box. Code:

View Replies !
Getting Current Page Info Into The Query String
I have a drop down list in a form, in a PHP page, the form is displayed via 'echo'.

The FORM ACTION tags looks like this:

echo "<CENTER><FORM NAME='choose_lib' METHOD='post' ACTION='viewpix.php?ctPos=360&ctWid=109&hsp=1&loc= XXX '>";

When the user selects a name from the drop down list, which is dynamic, how can I get that variable into that ACTION url where it currently says XXX ? All I can think of is that I am going to need an intermediate page, and that doesn't sound very efficient.

View Replies !
Use Php Script That Configured To Get Certain Info Off Of A Web Page And Store Them In Some Variables
is there an easy to use php script that configured to get certain info off of a web page and store them in some variables, without having to do a lot of coding by hand.

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 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 !
Header Problem - Insert The Info Below And Then Jump Back To A Page.
i want to insert the info below and then jump back to a page. Here is insert and the header statement: PHP Code:

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 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 !
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 !
Use Sessions How Does The Php Mask The Page Url.
If i use sessions how does the php mask the page url. To be more specific, if I'm employing sessions on www.whatever.com and I visit www.whatever.com/whatever.php the browser only displays the address www.whatever.com. How is this achieved if I wanted to do this without using sessions. How do I mask the address like this?

View Replies !
Sessions And Page Expiration
im trying to make a search engine with a login using (much like craigslist). problem is - when i start a session, none of the pages are cached so the page expires after the user views a result, and cant get back to the results page.

View Replies !
Sessions And Cookies In One Page.
Am i right in thinking that you need to do start_session() and setcookie() before headers are sent?

and they also set headers when you use them? soo... how do i set a cookie on a page that's already using sessions?

View Replies !
Regarding The Sessions For A Login Page
I have created a login page with username i,e mail Id n Password and a sign in Button......that mail id n password were already created in Database.....!!! Code:

View Replies !
Sessions And Member Page
What script do i need to put on the actual member page to make sure the user is logged in (so as it can't be accessed by typing the address in), and doing this with sessions. The script from the login page if everything else is successful is: Code:

$username = $_POST['user'];
$password = $_POST['pass'];
$query = "SELECT * FROM login where user = '$username' or pass = password('$password')";
$execute = mysql_query($query);
$countrow = mysql_num_rows($execute);
if ($countrow == 1){
//
$_SESSION['user'] = $username;
$sid = session_id();
//
// Redirect
...

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 !

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