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.





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

Related Forum Messages:
Is It Possible To Forward To Some Page ?
Is it possible to forward to some page ?

like forward('aPage.php');

View Replies !
How To Forward A Page Using PHP
i have a code like

if (...)
{
forward to xxx.php
}

now this is conditional so i cant use javascript and i also dont want to use that, how to do this in PHP, by forwading i mean opening a new page

View Replies !
Forward A Web Page To Email
Is there a code script that can be used to forward a webpage to someones email address?

View Replies !
Forward To Page Alongwith Variables In POST
How to forward a page to another page alongwith the parameters passed into it

I mean I have page a.php
which is called with some parameters in $_POST and I require to pass these to another page with same variables in $_POST

View Replies !
Getimagesize() - Make Php Forward A User To Another Page?
If getimagesize() fails, how do I make php forward a user to another page?

View Replies !
Need To Make A PHP Script Forward To An Html Page When Processed!
When a php script is processed, how can I then get the script to automatically forward to a confirmation page? The script in question is a mail script, and I need to get this to forward to an html page to basically say, 'mail is sent'.

View Replies !
Pass Info From To HTML
I'm wanting to pass a value from PHP into a hidden input in HTML. I don't want it to travel in the URL if possible.

for example to help paint the picture.

From PHP
I want to pass this: value="true"

To HTML
<input type="hidden" value="false">

View Replies !
Pass Form Data Through PHP Redirect
I have to pass 2 form variables through a PHP URL redirect an I can not get it to work.
The two values look like this:

input type="hidden" name="account" value="00000000"
input type="hidden" name="reqtype" value="secure"
They are submitted through the form POST method.

Here is my current redirect PHP code:

View Replies !
Login In A User, And Then Pass The Username And Session_id From Page To Page
I want to login in a user, and then pass the username and session_id from page to page until the leave the admin area of the site. Here's a simplified function: PHP Code:

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 !
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 !
Warning: Cannot Modify Header Information - Redirect From Login Page To Logged In Page
I am trying to redirect from login page to logged in page, but using the {header( 'Location: C:wampwww' ) ;} is giving me this error {
Warning: Cannot modify header information - headers already sent by (output started at C:wampwwwpassword.php:14) in C:wampwwwpassword.php on line 35}, find below my code:

View Replies !
Pass The Variable From 1st Page And Read It With Other Name On 2nd Page
I am new to this and learning slowly, but I was hoping someone could give me some quick advice on how to create a variable on one page and have it passed to another to be read as an ID for a mySQL database.

I want to pass the variable "varRevID" from one page and have it read as "reviews_id" on the other.

My database is pulling from just the first record and I would liek to designate from the pointing page which record to pull from.

View Replies !
How Can I Pass Variables From The 1st Php Page To The 2nd Php Page Without Using Cookies
How can i pass variables from the 1st php page to the 2nd php page without using cookies or passing through the URL from an <a HREF="2ndpage.php"> link? the variable consist of 200 characters. for example some code

//for example i get the variable $variable from the db.

while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
<a href=&#392;ndpage.php'>
}

View Replies !
Pass A Value From One Page To Another
I am currently migrating from an asp environment to php and need assistance converting my scripts. I am trying to pass a value from one page to another. with asp, i use the following: First page:

<form name="form1" method="post" action="XXX.asp">
<select name="ABC" id="ABC">
<option value="na">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
<input type="submit" name="Submit" value="Go">
</form>

Second page:
named XXX.asp

code:
<a href="http://www.example.net/click-123-456?SID=<%=request.form("ABC")%>" target="_blank">DEF </a>

What PHP code will place the value of the selection (A,B,C, or D) in the <%=request.form("ABC")%>" spot?

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 !
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 !
How Do I Redirect A User From A Page To A Different Page ?
How do i redirect a user from a page to a different page ? i don't want variables to follow behind the url of the pageg being redirected to.

View Replies !
How To Pass A Var To Another Php Page W/o Using A Form
I want to construct a URL as follows:

<A href="/somewhere.php?epoch=38129301">Link</A>

Is this possible w/o using forms? I am unable to use $epoch in
somewhere.php

View Replies !
How To Pass An Array From On Php Page To Another
i want to send an array from one age to another... i am not using a form....so cant use php-trace-vars.. i have variables...in an array and i want these array elements to be visible on next page too...without posting them..how is this possible.

View Replies !
How Can I Pass Variable To Next Page?
I have a search page to search the database, the input from user are include 4 items:

keywords
country
catalog
date

the results are divided into pages by date desc, so there are PREV10 1 2 3 ... NEXT10 to indicate the page number. Then, How can I pass the 4 items and the page number to next page? I don't wont to use urlencode() and urldecode() because there will be long url in IE's address. I try to set the $HTTP_POST_VARS as cookie, so my code:

View Replies !
How To Pass Session Id To Another Page?
I have a script for loggin to a site. My problem is that I want to pass the session Id to another page but I dont know how to do this. what is the correct way to pass another page the session id for security issues?

my another page is: pagina_entrada.htm in this page I have the script for checking if it is the real session id if not it is refused the page This is the script in each page belong to site. All pages has this script first. Is tthis correct? Code:

View Replies !
Pass Variable To Another Page
i know i can pass a variable with POST or GET. but i want to do the following:

a user enters wrong login credentials, so i redirect the user to error.php.
but i also want to pass the message "login credentials not found!".
I could do this with: header("location:index?php?page=error&err=wrong login credentials");

but i don't want the error string to be visible. can i do this another way?
POST doesn't seem an option to me as there isn't a form involved.

View Replies !
How Do I Pass An Object To Another Page?
I have 1 page with products on it which users add to a shopping cart using a shopping cart class. The class stores the users products into sessions which works great but I need to be able to display the cart contents on my checkout page using my display cart function. Do I need to pass the shopping cart object and if so how do I do it? PHP Code:

View Replies !
How To Pass The Object Between Page?
I've create a Class Cube which is a object that contain 6 faces in a cube and got functions to turn the cubes in all directions. Here is the code of cube.obj : PHP Code:

View Replies !
Pass An $id Value From One Php Page To A Form
At the moment i am trying to pass an $id value from one php page to a form which then gets inserted into the database. The problem is that the value inserted into the database does not equal the value that it should, it always equals "0".

Here's what i've got so far. On the php page that sends the variable to the edit.php page i have the following script: PHP Code:

View Replies !
Pass A Variable In The Url To The Next Page
i am trying to pass a variable in the url to the next page: http://www.xxx.com/xxx.php?at=$price

then, on the xxx.php page i would just use the following command to retrieve the variable: $test = $_GET['at']; wouldn't this be correct?

View Replies !
Pass A Variable To A Second Php Page?
I am working on my first multi-page php project, and was wondering how this works. On the very first page I have:

<select name="itemtype"> which is given a value of 1, 2, or 3 and passed to the next page by:

$itemtype = $_POST['itemtype']; where the value of itemtype is used in a switch statement. 

I want to use the itemtype variable again, and add it to my database, so the page can remember if the item is a dvd or cd or book. 

$itemtype = $_POST['itemtype']; 

Doesn't seem to be working again is there a way to pass this variable?

View Replies !
Pass The Variable Through To Another Page
I am trying to do: Email form gets sent to email.php and then on to thank_you.html.

So ... the trouble is ... I lose the variable $green along the way.

And what I mean is this:

form.html says this: <INPUT NAME="green">

then email.php sends an email and goes here:

$redirect_url = 'thank_you.html'

But what I want to do is ... IF green is equal to a certain value - I want to display certain text on the thank_you.html page.

But, I seem to not have access to $green once I get to thank_you.html. Code:

View Replies !
Can't Get The Array To Pass To Another Page
A user input form to where the value is inputed by the user. Can't get it to pass to page 2. Any ideas? Code:

View Replies !
Trying To Pass An Identification From One Php Page To Another
I am trying to figure out how to pass an identification number that is generated before the user logs into the system (as they select a job that they are applying for) but is needed after to fulfil their initial request.

They can search for jobs but they can't apply for them until they log into the system - thus the identification number of the job they are applying for needs to be passed onto the next page as they either log in or register.

I need this identification number (originally retreived from a MySQL database) to be passed through possibly upto 3 pages before it reaches its destination. i also need to be able to send it back to the database on the final page. Is this possible? or is there a better way of doing it? if so how would i go about undertaking it?

View Replies !
Pass XID Via A Session Along Each And Every Page
the user sets up the account and adds each subuser as part of his "group". they share an XID inside the database. so user XID = 001 and subuser XID=001 so i know they belong to the same group.

I want to be able to pass this XID via a session along each and every page. So one of my functions in my application would be to list all submembers with this XID. when the main user signs in, how can he carry this XID over every single page he visits? (There is no telling when the main user wants to perform the function above)

So login would include username and password, but in the background i want the XID to be passed along somehow after login. So obviously the username password and XID would be in the same table. Would i pass information in an array? how does the script know to hit this one table. I guess im having trouble putting 2 and 2 together.

View Replies !
Pass Array To Same Page
im using the followig code where $e is an array:

<a href="admincourse.php?addall=addall&month=$month&year=$year&courseid=$courseid&d=$e">

but its not being passed as an array its being passed as some text "array", what is the correct way to sort this?

View Replies !
Pass Parameter To New Page
With psp, how can I go to another page and pass a parameter to it?

View Replies !
Pass An Array From One Page To Another
I'm trying to pass an array from one page to another and display it's contents on the next page. This is the code I am using

$var1 = $_GET["name"];

foreach($var1 as $value)

echo $value;

I keep getting this error "Warning: Invalid argument supplied for foreach()in..........."

View Replies !
How To Pass A Combo Box Value To Next Page?
i've a combo box filled with values. i need to pass the value of the selected value to the next page.

View Replies !
Pass Variables To Another Page
I have the following line in one of the pages I made:

echo("<A HREF=$PHP_SELF?deleterecord=$recordid>" ."Delete this record</A>"."</li>"[smilestopper]);

($recordid is the unique id of a record i have in a mysql table) When I load the page and choose to delete from one of the links the page reloads but the record is not deleted as it should be from the code I have at the beginning of the page. The whole problem, i think, is that the value is not passed when the page is reloaded, which i have seen by adding at the beginning the command echo($deleterecord);.

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 !
Pass An Array To The Next Page In A Form
I have an eccomerce site that has a shared secure server this causes problems with my sessions because as soon as you go to the secure server it obviously starts a new session because it is on a different server. Firstly is there a way to stop this.

Secondly if not can I easily pass an array to the next page in a form, I don't think this is possible don't all items have to be displayed in the form, each item in the array needs a form field (hidden) in order to pas sit to the next page.

View Replies !
Pass Upload Page Variables
As I sure will become obvious with the asking of this question, I am new to
programing....

I have copied and pasted my way to a successful file upload page and have
built some rather ugly if elseif loops that read the file and extract the
needed data from it. While the data is being parsed from the uploaded file
a string variable is being built that holds some details of the process.
All of this happens when the user clicks the upload button on the form. Now
when all this code is finished running, I ASSUME the page reloads, because
my string variable seems to be empty. So, my question is how do I keep this
variable so that I can print it to the form when the process is finished?

View Replies !
Changing The Variable As You Pass It Through To The 2nd Page
I am using a form to push variables through to another page. In the form, (a drop down), the code is:

<select name="1"><option>L</option><option>P</option></select>

Now on the second page I could display the P or the L by saying <?php echo $1 ?> which is fine. What I want is, if someone selects P then it prints 1 on the next page and if they select L then it prints 2. Is this possible?

View Replies !
PHP/SQL Pass Value To Field On Linked Page
I have setup an sql table containing project data (job no, description, date and auto-number id) which displays in rows on my main page. Next to each project is a link which a user can click to submit their details to show interest in that particular project. When they click this link they are taken to another page with a contact form, but I need to automatically show the job no of the project they selected in this form. I have successfully got the job no for the 1st record in the table into the field but need to make it dynamic.

View Replies !
Can I Pass Data From One Form To Another On One Page.
Can I pass data from one form to another on one page (what i've got is one form that when the submit button is pressed it submits the form in another window, part of my form:
PHP Code:

View Replies !
How To Pass Data To Linked Page ?
when a user clicks on a hyperlink i want to pass data to linked page.
but what i want is that this data should not be visible to user. i mean
is there any way that i can pass data except get method when user click
on hyper link?

View Replies !
How To Combine And Pass Data In One Page?
I didn't know what to use as a title for this. Here is the scenario:

I have a op.reqedit.php page. This page a form where you input data.
In this page I have split a MySQL field. It is called
MachineTypeOfWork and is split into Replace, Adjusted, REbuild,
Inspected and Repair. These all become check boxes for the user. The
form submits to op.reqadd.php. In this page I first have a hidden box
where I combine all of the above into Type (this works fine, I have
unhidden the box to see it). Then I have

$MachineTypeofWork = $_GET['Type'];
$sql_query = mysql_query("UPDATE results SET (a bunch of fields)
MachineTypeOfWork='$MachineTypeofWork' WHERE WorkOrder = '$wo'") or die
(mysql_error());

My problem is that it updates all of the fields it should except the
MachineTypeOfWork field in MySQL. It actually overwrites what is
already there with nothing.

What I do not know (I am new) is can I combine the field and pass it to
the database in the same page or do I need another page in the
background for this?

View Replies !
Pass Values Of Arrays To A New Page
How do i pass all the values onto another page that I have gathered. If I have a form and place info into the array, how do I pass the value in that array over to a new page.

View Replies !
Way To Pass The Selected Records To The New Page?
I have a dynamic table and use a check box in every record. I want the selected ones to open in a new page. What shall I do? I mean, what is the way to pass the selected records to the new page?

View Replies !
Pass The Session Variables To A Second Page.
Ive got a problem with our server. I checked it and i cant login to our webmail(horde) and all other sites that  requires logging in. So far i think it has something to do with session variables not being written or not being able to pass the session variables to a second page.

Error messages:
Undefined index: uid
Undefined index: sid

Here's our server specs:
Linux Dedicated server
Fedora Core 3
Plesk 7.5.4
PHP 4.3.11

Im not that well versed with handling servers to i dont know were to start.

View Replies !

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