Google Custom Search
Image of Passing Variables

Pass Variables from One Page to Another -- PHP

Tutorial Outline :

Introduction - php Passing Variables between Pages

In this tutorial about passing php variables, you will learn how to access PHP variables from one page to another.

This tutorial will illustrate how to collect information with a form; send that information to another webpage; encode that information into links, use session data to track data across the the user's entire visit and place cookies on the user's machine to be used by a php script for tracking and passing data.


The fact that you have made it to this webpage means that you have probably started coding a php script, everything is looking great and you are ready to send your collected data to another page or script to do some more work on that data. If your experience is anything like my early php coding experiences with passing variables - your "hello world" program with the echo function does not really offer much instruction on passing data to another webpage. Quickly frustrated because everything I found online assumed that passing variables is something the reader should already know, I decided to create this website and and document new coding techiniques as I learned them. I hope this tutorial helps you learn php.

Like us on Facebook

Get The PHP Manual
The php manual is an indispensable tool for a php developer. It gives examples of code and built-in functions that will help you grasp how php works. It can be found at . For those running a Windows Operating system, it comes in an easy-to-use help program. You can download it here

Passing $_POST to Another Page

Here is a simple example of how to pass a PHP variable from one page to another with the post method, and how to use the POST super global array to make your coding experiences more efficient and less time-consuming. We will start this lesson by creating php files.

  1. First create a file named passing-vars.php .
  2. Second create an HTML FORM on the passing-vars.php file to collect user data.
  3. Third you create a file named catching-vars.php and then write some php code in it to handle the variables.

Explanations and How To

If you are new to this stuff, the explanations in the following list should help explain things.

  • Creating php files -- Obviously if you are going to write php scripts you will need to know how to create php files.
    The good news is that creating php documents is arguably the easiest part!
    Simply open a text editor like notepad and save your file as YourFile.php


    You can also do this for "HTML," "ASP," and "TXT" files.

    However, with the exception of text files, to display correctly you must place them into a web-server directory and open them with a web-browser.
  • What is Hosting ?-- A hosting account is space on a web-server that your website files reside on that is provided by a 3rd party company for a price. If you don't want to pay a 3rd party you can set up your own server. Doing it yourself will require a level of expertise that is beyond the scope of this tutorial.

    I strongly suggest installing a local test http server on your personal computer. Apache is used in these examples. Apache is generally easy to learn, it's free, and it has been around since about as long as the Internet itself. In fact, you may want to look at Installing Apache and Installing PHPfor instructions on setting up apache and php on your local machine.
  • FORM -- Forms are used to collect text data from Internet users. They are made up of text boxes and submit-buttons. Data collected with FORMS can vary greatly depending on website types. for example has a FORM at the bottom of each page for collecting user feedback and comments about the website. When the Submit button is clicked, whatever text the user typed into the FORM'S input areas will be passed along to the web server which uses the value in the input box's -- name=variablename attribute to create global variables that live in the server as super-global-arrays, POST or GET. For now it is enough to know that those variables have a global scope, and are usually sent to the script that you have pointed your form to using the form tag's action="". The example form in this tutorial is pointing to a script called catching-var.php. catching-var.php will process the data passed to it from the by the form we place on "passing-var.php."

Posting Data

Copy the HTML below, paste it into a text editor and then save the file as "passing-var.php"

Look closely at the "FORM TAG." The server KNOWS, so-to-speak, to handle this data as "POST" because the method=POST attribute was set in the form. If this attribute is omitted or not set, it defaults to "GET" When submitted, the address bar will not contain the familiar

This is because the POST method, contrary to GET does not pass variable information in the address bar.

Although, it is noteworthy to mention that both of these methods CAN be employed simultaneously providing added advantages such as hiding some of the information passed while leaving some in plain sight. From a development point of view, the ability to change-up the variable-names and values in the address-bar is much faster than recreating the forms that send the data while testing.

Copy the PHP code below and paste it into a text editor and then save the file as "catching-var.php."

Visual example of Super Globals

Testing the Post Script

Open your web browser and navigate to passing-var.php. Insert some data into the form and submit it.


Now the catching-var.php script has access to the data sent over to it by the HTML FORM your created -- passing-vara.php . If all is working correctly, you should see the data that you entered in the output of catching-var.php.


Post Summary

That concludes the POST tutorial on learning how to pass variables from one page to another in php.

Next in line is the "GET "method. GET is teh DEFAULT methad used by HTML forms.
If you do not specify POST in your form's action attribute "action=post" then "GET" will be used.

Passing variables in php with $_GET

The "GET METHOD" allows you to see the variables along with the values stored in them in your web browser's address bar as they are passed to the another page. Additionally, paasing variables encoded into hyperlinks uses GET.

Let's Take a look at how this is done.

GET Anchor / Hyperlink Link Example

Get a Decent Text Editor

If you read the POST tutorial then you have already learned how to make php files with a text editor. If not, then need to go and get a good text editor. I suggest notepad++. It is chocked full of features for just about every kind of programming language you can think of; and the best thing about it is -- it is free. It will cost you nothing; not a dime! However, for those of you who can afford it, I strongly encourage you to make donations to the author of Notepad++ for giving us all such a great text editor. Also JUST FYI. I get nothing for promoting it. I plugged it because I honestly like it.

Now that you have a good text editor let's learn how to write php to handle variable sent with "GET."

First Complete the Following Steps:

  1. Create two .php files -- passing-var.php and catching-var.php.
  2. Place those files into a directory on your web server that is able to serve php scripts to the public.
  3. On Apache it is usually called htdocs

Passing php variables in HYPERLINKS - GET

Using GET for passing variables from one page to another page in PHP can be more versatile than using "POST", especially when dealing with dynamic variable data and user input. "GET" is the method utilized automatically when variables are coded into hyperlinks.

First - Coding variables into hyperlinks.



When you follow this link to "catching-var.php" :

These variables ----- > name=Shaun&Lname=Morgan

will be available to catching-var.php via the the $_GET super global array -- $_GET['name']&$_GET['Lname']

Now place the following code at the top of the php script page - catching-var.php

Second - How to Use GET Method With HTML FORMS

You actually see "GET" variables all the time while you are browsing the Internet. They are the cryptic-looking text after the Question Mark "?" behind the web addresses in your navigation bar. They are strings of text that represent variable names and data that is paired up and then passed to another page for processing by a web script or some other programming language.

After testing the catching-var.php file, lets go back and do something a little different. Instead of just accessing the GET variable lets do something useful with it. Next we will code the data that was sent into yet another URL to be passed on to yet another page etcetera.

The resulting link would be:

You can also pass variables in the "action" attribute of the form tag like this:

Keep in mind that passing php variables in hyperlinks only works if the user clicks on the links.

Security Concerning the GET Method

The "get method" passes data in the URI. If you look at your web browser's address bar after submitting a "get method" form, you will notice that you can view all variables and values pairs that were written into the page's HTML forms and links. They can also be modified and resubmitted by the user which can make GET data insecure by itself.

Malicious input can be added to GET values in the web browser in an attempt to launch an injection attack against a web server. People who perpetrate injection attacks attempt to cause harm to remote machines by sending servers parameters often encoded into a web browser's address bar. PHP programmers should always watch out for this kind of attack and be proactive about stopping attackers before they compromise their websites.

Basic Security Tips

  1. Use Functions likestriptags() to keep attackers from injecting unwanted HTML and other code into your web site. The striptags() php function removes HTML and other scripting tags from the content it processes.
  2. fgetss( ) -- Does same as str_replace
  3. str_ireplace()
  4. Write code that tracks number of times a web attacker attempts submit a form. Throw an error and write soem code to deal with it when it is attempted toom any times

POST is slightly more secure than GET because a the variable values you are sending are not visible.

Example Passing Variables Using $_SESSION['']

What if I want to pass a certain set of variables several pages or every page on my website?

Do I have to keep coding $_POST or $_GET into the HTML on every page?

Answer: No - You can use Sessions Or Cookies Instead.

SESSIONS will allow you to pass php variables and values to every page a user visits on your web site.


  • Every time a person visits a site that uses php session_start() a new session is started.
  • The user is also assigned an unique SESSION id number
  • Sessions are valid until the session expires (the expiry value is set in the php.ini file), or until the user closes his or her browser.
  • SESSIONS are php super global arrays
  • The syntax for accessing session variables is -- $_SESSION['name of variables'].
  • Using Sessions can make passing variables between pages much easier.
  • $_SESSION['name of variables']is available to programmers anywhere on the server that he/she invokes the session_start(); php function.

Example of Form Tag and $_SESSION[''] Variables

First send the variable to a script

Move $_POST Variable Contents into $_SESSION Variable

Call: "session_start()": on testScript.php

Explanation of Example Script

First we use a form to send POST data to a php script -- testScript.php

Next testScript.php calls up the session_start() function, creating a session variable --- $_SESSION['name'] ---and sets it to the value found in $_POST['name']values. Now the $_SESSION['name'] variable can be accessed and used from any page on the server

Accessing $_SESSION Variable

You must call the "session_start()" function in php to gain access to the $_SESSION super global array.

Example on How to Use SESSIONS

Example About Using Cookie Variables

Using Cookie Variables php
Author: D.Shaun Morgan

How To Make Browser Go Back To Last Page With Using Php

How To Make Browser Go Back To Last Page With Php8/12/2014After submitting an HTML form or clicking a link encoded with variables and information, it is often desirable to the programmer that the user's browser be automatically redirected - to go back to the previous page. The simplest way I've found to accomplish this is by using a php built-in function called - header() and a PHP built-in variable called $_SERVER['HTTP_REFERER']

Binary Search User Functions

Binary Search User FunctionThe code in the example is for finding a given value in a sorted array.If the value is not found the function will return the position of the location where it the value should be.

Php Conditional Statments If Else Switch

Conditional Statements If Else & Switch CaseIf ElseIf else is the bread an butter of programming - so-to-speak. if-else and Case Switch are known as conditional operators; they create conditions or criteria that a block of code must meet in order to accomplish a certain task. Conditions make up the logic of a script.When writing scripts there is usually a need to compare something or make a decision, for e

Textarea Code Overflow

Textarea Code Overflows and Runs Out Onto PageMy Decision to Use Textarea TagWhile working on a script for to edit content, I ran into few problems. First - because mrarrowhead is a website about building websites using php, I have had to battle with the best way to display the example code on my webpages.I tried using the HTML special chars & lt; and & gt; respectively but I found it much too time consuming and tedious trying to convert the HTML code ba

Convert Timestamp To Readable Date Time Using Php

Convert Unix Timestamp to Readable Date Time PHPUser Functionstring function convert_timestamp(string $file_in, int $column,string $dateformatReturnsReturns a string representation of the file with one column convertedstring $file_inPath To the Fileint $co

Creating Image Watermarks

Creating PHP Watermarks$my_image = imagecreatefromjpeg('photo.jpeg');$watermark = imagecreatetruecolor(100, 70);imagefilledrectangle($watermark, 0,0, 99, 99, 0x0000FF);imagefilledrectangle($watermark, 9,9, 90,60, 0xFFFFFF);$my_image = imagecreatefromjpeg('photo.jpeg');imagestring($watermark, 5, 20, 20, 'libGD', 0x0000FF);imagestring($watermark, 3, 20, 40, 'watermark', 0x0000FF);$marginRigh

Need To Print Out An Array Using Php

How toPrint PHP ArraysThings to Consider AreArray Type- Single Array or Multidimensional Array?Class-Object Array?Raw Dump of Array Keys and Values?Array Data Precision Extraction Methods?Formatted Array Data - HTML tags - Str

Odd Number Php Script

Testing for Odd/Even Numbers - PHPExample - Banner Rotation PHP Script Odd/Even NumbersSimple Php Tutorial Creating Odd / Even Testing% modulus operator.$_SESSION['x'] % 2;In this example I will demonstrate a php script that I use to rotate two Ad banners.This results in a script that changes up the banner every time the user clicks

Using Php Cookies Variables

Using Cookie Variables in PHPSetting cookies in php is pretty straight forward. There is a php functionsetcookie();This function must be called before any anything else on the page or it will fail. There are two options to address this.Use ob_start to Buffer contentYou can either make sure that setcookie() is the first thing you call in your script - which is often just not a possibility.

How To Unzip Files On Your Free Hosting Account

Uzipping Files on Your Web ServerIf you are using a free hosting account with and many of the other Free hosts out there, you may have found that they don't offer you a lot of features. One feature that I could not find on free hosting accounts was a utility that would unzip my files after I uploaded them to my server. I had a dating site software that I was trying to install after I uploaded the zip files to my hosting server.Thus, I wrote a PHP

Passing Data From One Form To Another Form Using Php

Passing data from one form to another formTo pass php data from a form and then catch that data into another form one way to accomplish this task is to intermingle your php code into your HTML to dynamically capture variable values. This particular method is useful in a scenario where the user updates something via a post (it could be a text file or database) and then the user is returned to the page where the form is located to find various fields popula

Just In Time Compiling

JIT - Just in Time Compilers JIT refers to a special software that is found in web-browsers, and scripting engines such PHP's Zend. (My understanding of ZEND is that it produces byte-code and functions similar to other JIT compilers). For this discussion, without trying to be overly technical on what a JIT is or isn't -- JIT will simply mean software that turns scripts into executable code for whatever machine it is running on. The concepts of JIT and it's various

Storing Image Locations Mysql

Store Image URL in DatabaseRetrieve Image with PHP Script Saving URL Text in Database Saving image filesystem paths, of an image file in the database is easier than saving the whole image. Storing whole images requires converting the image files into bit-streams then saved into the database as binary and then changing them back into th

How To Turn Variable Value Into Variable Name

Variable Variables in PHPi-1Every so often when you are writing a php file, we all run into a situation where we would like for the name of the string that is inside of your php variable to be converted into the actual name of another variable. After a fair amount of hunting around the internet and getting sent off into PHP code hunting limbo for a few hours, I suddenly remembered that this was something that I had  found a solutio


Explanation of PHP Basic Syntax --New to PHPPhp is a language that is very much like writing c. The best feature of PHP versus c is that it is designed primarily to be used on WebPages -- allowing the author to intermingle their php code and the HTML on the same page. Being able to mix these two languages together provides a very flexible environment that allows the author to code some very nice dynamic content. PHP is called a server side scripting l

How To Use Dreamweaver

Dreamweaver - WISIWIGDreamweaver is a tool that arguably could be called the industry standard for web design.Dreamweaver, is an Adobe product that originally belonged to Macromedia. They sold out to Adobe a few years ago. I have been using Adobe/Macromedia Dreamweaver for about ten years. I am today using the Dreamweaver version that came packaged with Adobe CS 4. I started out with Dreamweaver 4. Since then Adobe has given this software a slightly different face and


Filezilla Ftp Client, FTP SERVER vs WsftpBy D.Shaun MorganWhile I was writing this article, about halfway through, I realized that it would be unfair to tell my readers about Filezilla without also mentioning another very good FTP client called WSftp. So, I backtracked and browsed over to website to take a look at the latest version. The fact is, when I first started building websites, WSftp was actually the first FTP client that I used. I don't know if Fil

Notepad Plus

Notepad++Download Notepad Plus Plus Notepad plus plus is an open source, free text editor. It is an ideal choice for many programming and scripting languages. Example - How to write c++ with Notepad Plus PlusExample - How to write HTML with Notepad Plus Plus

How To Open Create Write Files Using Php

Php file functions, Opening a file in php, reading a file in php, writing a file in phpIn this tutorial we will look at the most commonly used file functions used in php. The examples below should be pretty familiar to the seasoned php scripter, but they are useful nonetheless. We will end this tutorial with a php script and an html form that will read the contents of a file into a string variable and output it into a textfield for editing. You can try the script out be

Stop Form Spam Captcha

PHP -- How to Protect My Email Form / Contact Form Against Spam BotsAuthor D.Shaun MorganRandom Name Fields to Stop SpambotRandom Name Fields to Stop SpambotExample Random Name Fields ScriptExample Message ScriptStopping Spam Bot With

Retreive Images Mysql Using Php

How to get images out of mysql database with php and use them on my webpagesRetrieving Images From Mysql Database With phpAuthor D.Shaun MorganPHP Version - PHP 5xMysql Version - 5Tutorial OutlineDownload Test ScriptsCreating a Test Mysql DatabasePhp Script to

How To Make Money Online

Making Money on the InternetSign up for this series of free money making articles Name Email Since you are reading this I am going to assume that you are looking to either start or improve a venture of starting or improving yo

Store Images Mysql Using Php

Storing Images in Mysql DatabaseTutorial OutlineCreating a Test Mysql DatabaseExample php Database FunctionExplanation of Database FunctionPhp Script to Load Images in Mysql DatabaseExplanation of Image ScriptSee Also

Php Example Post Array

Visual example of how PHP handles the super-global array variable "$_POST"Author D.Shaun MorganVersions and Skill LevelPHP Version - PHP 5xReader skill level - BeginnerXHTML 1.0 Transitional - interchangeable with HTML 4.0See AlsoHow can I pass a PHP variable from one page

Php Arrays

Passing PHP ArraysHow to pass php variable arrays between pages.Author Author D.Shaun MorganSee AlsoHow can I pass a PHP variable from one page to anotherIn PHP progra

How To Write Php Functions

Explanation of a Basic PHP FunctionWhat is a PHP function?In PHP a function represents a block of instructions that perform a task. A PHP Function allows the user to re-use blocks of script without having to rewrite all the code every time it's needed. This is useful for repetitive tasks that perform the same jobs over and over.PHP has a large number of built-in function

How To Write Html Form Using Php

When learning PHP to build a website, one of the very first things that any newcomer, or beginner needs to learn is how to use HTML or XHTML ( will mean the same for this tutorial.) forms to collect information from users. Those data are usually email addresses, names, birthdays, and sometimes private information like credit card info, SSN, and home addresses. (The scripts in this tutorial are not meant for processing security sensitive data. It is only intended to teach you h

Register Globals Long Arrays

Security, php.ini, register_globals and register_long_arraysAuthor D.Shaun MorganVersions and Skill LevelPHP Version - PHP 5xReader skill level - ALLTutorial Outlineregister_globalsregister_long_arraysSee AlsoPHP Tutorials

How To Install Php 5

How to Install PHP 5.x.x.x on WindowsThis is beginner's how-to manual explaining how to quickly setup a PHP 5 installation on a Windows PC. You must have an Apache webserver installed and working on your personal computer.This tutorial was written primarily for configuring a test server.Below is a list of what you need before you start trying to install PHP.An Apache server installed and running (

Php Passing Variables

Pass Variables from One Page to Another -- PHPTutorial Outline Passing PHP variables with $_POSTPassing PHP variables in links with $_GETPassing PHP variables without POST or GET | $_SESSION
Google Custom Search

Leave a Comment




Enter The Captcha:

Author: sachin | Website URL: |
I am working on a small web site.I use form action method for login but in same page i give a searching criteria to show specific data. but when click on search button it show the path of login but I want to show search page how can I do this?
It sounds like you are probably using the same form tag for both actions. Create two forms on your page -- one for searches and the other for logging in. Place the search text boxes and button in the search form and put the login textbox and button in the login form.

Also it may be helpful and keep things simpler and easier to manage if you create locate the action scripts in two separate files instead of trying to put them on the same page. Doing this makes our code much more manageable.

Another great way to implement your idea is with AJAX code. AJAX will allow you to call and use your PHP scripts with JavaScript without actually having to navigate the web Browser away to another page. AJAX is what makes possible neat features like the way Google can offer you suggestions as you type them in. It literally creates a bridge between the client side code and server side side code. VERY COOL!
Author: Shalini SIngh | Website URL: |
session_start(); include ("header.php"); include ("navigation.php"); //print_r($_GET); $_SESSION['city']=$_GET['city']; $_SESSION['ocity']=$_GET['ocity']; $_SESSION['state']=$_GET['state']; $_SESSION['zip']=$_GET['zip']; //$_SESSION['zipONe']=$_GET['zipONe']; $_SESSION['country']=$_GET['country']; $_SESSION['radius']=$_GET['radius']; $_SESSION['property_type']=$_GET['property_type']; $_SESSION['min']=$_GET['min']; $_SESSION['max']=$_GET['max']; $_SESSION['numBegin']=$_GET['numBegin']; $_SESSION['begin']=$_GET['begin']; $_SESSION['num']=$_GET['num']; $_SESSION['total']=$_GET['total']; //print_r($_SESSION); include (""); ---------------------------------- now if i want to search through script "" ,it wont send SESSION variables to this script . Any work around for this.
Author: Pavithra | Website URL: |
Please guide me about passing data from one form to another; i collect the details of the user in a form in a html page.When i click on a submit button in this form it ones another form ie html page ("thanks.html") ,here i display a msg "Thank you for registering " along with this msg i want to display the datails of the user entered in the previous form. How appropriately should I use the get and post mtds. Please let me know

Re: From Admin:

Check out this script that I posted online. It will help you with your forms.
Passing info from Form to Form
Author: ashis mohanty | Website URL: |
Question? I want when I click the first button(submit) it will display the total table in the same page and when i click the 2nd one it will display the selected row of the table in another page through catching the id value.
Author: Ayush | Website URL: |
Hey hieee... I just started a project in a hospital to enter medical records of patient. I have given each doctor a username and password. As soon as they log in they can either add a new record or search for an existing.When a doctor searches he gets record of all the patients i.e. patients referred by other doctors too.and they can update the information too. But i want the update to be done only if the patient belongs to that doctor or else other doctors must be only able to view the details but not edit them. Plzzzzz provide your suggestions.... Thanx in advance :
Author: amit | Website URL: |
i have prepared a login form in which when the user enters the user name and password , if the username or password is correct then a new window is displayed but if the username or password is incorrect then the text username or password is inccorect should be displayed at the bottom of the login form and not on the new page
Author: khurshid alam | Website URL: |
I want to pass two three parameter into one link. how i can I do this?

Re: admin

The simplest way to pass parameters with a link is with the $_GET method.


$parameter1 = 'param1test';

$parameter2 = 'param1test';

$parameter3 = 'param1test';


<a href="<?php echo $parameter1 ?>parameter2=<?php echo $parameter2 ?>parameter3=<?php echo $parameter3 ?>&;">This is your link</a?>

Author: neeraj | Website URL: |
I want to pass variable value which is not there in form tag to another page

Re: Admin

I think you are asking me how to pass a variable value that is not inside the form tag on your page.

To understand this scenario we need to understand the concept of forms and links and how they work.

The form tag looks like this:

<form> stuff inside form tag </form>

Inside the form tag will be some text boxes and a submit button that will create variables on the server that you will be able to use on the next page.

<form action="test.php" method="get" >
<input type="text" name="" value="">
<input type="submit" name="" value="">

Now I am assuming that you want to know how you might be able to create variable other than what are found inside the form tag

Well you can add variables coded into a url in the action attribute of the of the form tag

<form action="test.php?newVar=true" method="get" >

If you do this, then you will be able to access "newVar" with $_GET['newVar']

Author: Baharul Islam | Website URL: |
Finally a tutorial where I can learn php. I've been trying to learn php for ever. sending variables from one page to another page is the most important thing to learn in php.

Thank you!
Author: Anil | Website URL: |
I want to pass three value using three hyperlink
Re: Admin
Refer to the section on
Author: Paddy manning | Website URL: |
I was trying to use a php to offer a savable download by passing the name of the file as a variable so a href= download.php?$file = pdfs Economics_in_one_lesson.pdf download a ?php if file_exists $file { header Content-De ion: File Transfer header Content-Type: application octet-stream header Content-Disposition: attachment filename= .basename $file header Content-Transfer-Encoding: binary header Expires: 0 header Cache-Control: must-revalidate, post-check=0, pre-check=0 header Pragma: public header Content-Length: . filesize $file ob_clean flush readfile $file getting an unexpected end error message and am LOST
Author: Paul Rinderer | Website URL: |
echo day=$info[event_day]



Can you help me understand this code.

Thanks in advance
Author: nanda kishore | Website URL: restaurant |
i am working on small website when i am click on search button then call to another page from mysql back end how it is
Author: kumar | Website URL: |
How do i pass a variable to my tpl file if its used like : if $id=$my_id { status=1 } else if condition { status=2 }
Author: shabtu | Website URL: |
Re: Admin
Thank you for your comment Shantu.
Author: Ashwani | Website URL: |
http: test1.php?name=Shaun Lname=Morgan

How can we make above url SEO frinedly on second page.
Re: Admin
what do you mean by seo friendly?
Author: Kevin Blumer | Website URL: |
How do i pass a website to another website so i want to pass to so it comes out like this http: ir that kinda makes sense without the http: looked up a few ways but still dont know how to do it.
Re: Admin
Please email and elaborate on your problem. I'm not sure that I understand exactly.
Author: neha | Website URL: |
session is not working in my pc then?
Author: santosh kumar parbat | Website URL: |
how many variables are able to pass through hyperlink
when i am sendin two variable, its goes easilly. but when sending three variables , than its not going perfecty and showing only value of first two variable. i am using $_GET[ abc ] to retrive value in anather page.
kindly help me. Andd suggest me too.Thankyou
Re: Admin
make sure your variables are coded like :

Author: Rich | Website URL: |
Thanks for the help. My first $_SESSION
Author: JM | Website URL: |
Excellent and very detailed post, I wrote a small tutorial in the same subject, it can be helpful. I want to share it in your blog with your readers. Please take a look here : http: 1339 how-to-send-and-receive-parameters-in-php
Author: Felipe | Website URL: |
Aw, this was an incredibly nice post. Spending some time and actual effort to generate a really good article… but what can I say… I hesitate a whole lot and don t seem to get anything done. this site
Author: Zelma | Website URL: |
Good day Do you use Twitter? I d like to follow you if that would be ok. I m undoubtedly enjoying your blog and look forward to new updates.
Author: Candy | Website URL: |
When someone writes an piece of writing he she keeps the image of a user in his her brain that how a user can know it. So that s why this post is amazing. Thanks
Author: Janina | Website URL: |
It s a shame you don t have a donate button I d without a doubt donate to this superb blog I suppose for now i ll settle for book-marking
and adding your RSS feed to my Google account.
I look forward to brand new updates and will share this site with my Facebook group.
Chat soon
Re: Admin
Thank You
Author: Trent | Website URL: http: |
Thank you for any other informative website.
Author: Alycia | Website URL: |
Normally I do not read article on blogs, however I would like to say that this write-up very compelled me to try and do it Your writing taste has been surprised me. Thank you, quite nice post.
Author: Ofelia | Website URL: |
Heya terrific blog Does running a blog such as this require a large amount of work? I ve very little knowledge of computer programming but I had been hoping to start my own blog in the near future. Anyhow, if you have any recommendations or techniques for new blog owners please share. I understand this is off subject however I simply needed to ask. Appreciate it
Author: Krista | Website URL: |
I leave a response when I especially enjoy a post on a site or I have something to add to the conversation. It s triggered by the fire displayed in the post I browsed. And after this article How To Pass PHP Variable From One Page To Another Page | POST |GET | SESSION. I was actually moved enough to drop a comment :- I actually do have a couple of questions for you if it s okay. Is it simply me or does it seem like a few of the remarks appear as if they are coming from brain dead folks? :-P And, if you are writing on additional online sites, I would like to keep up with you. Could you list the complete urls of all your shared pages like your linkedin profile, Facebook page or twitter feed?
Author: Drew | Website URL: |
Thanks in support of sharing such a good article.
Author: Gabriel | Website URL: |
Hi I know this is kinda off topic but I was wondering which blog platform are you using for this website? I m getting sick and tired of Wordpress because I ve had issues with hackers and I m looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.
Author: razgriz | Website URL: |
it helps me alot man.... thankyou so much....
Author: Luis | Website URL: |
Ahaa, its nice dialogue on the topic of this paragraph here at this web site, I have read all that, so now me also commenting here.
Author: Susanne | Website URL: |
I absolutely love your website.. Pleasant colors theme. Did you make this site yourself? Please reply back as I m looking to create my very own blog and would like to find out where you got this from or just what the theme is named. Thanks
Author: Traci | Website URL: |
I usually do not drop a leave a response, but after reading through a few of the responses on this page How To Pass PHP Variable From One Page To Another Page | POST |GET | SESSION. I actually do have a couple of questions for you if it s okay. Is it simply me or do some of these remarks appear as if they are left by brain dead individuals? :-P And, if you are writing on other online sites, I would like to keep up with anything fresh you have to post. Would you make a list of all of all your shared pages like your twitter feed, Facebook page or linkedin profile?
Author: | Website URL: |
Good explanation. It is very helpfull for the beginner......
Re: Admin
thank you
Author: Tod | Website URL: |
Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn t show up. Grrrr... well I m not writing all that over again. Anyhow, just wanted to say fantastic blog
Author: Rusty | Website URL: |
Howdy This post could not be written any better Reading this post reminds me of my previous room mate He always kept chatting about this. I will forward this post to him. Pretty sure he will have a good read. Thanks for sharing
Author: Brad | Website URL: |
Usually I do not learn post on blogs, however I wish to say that this write-up very forced me to try and do so Your writing taste has been surprised me. Thanks, very great post.
Author: Dewayne | Website URL: |
Greetings Very useful advice in this particular post It s the little changes which will make the largest changes. Thanks a lot for sharing
Author: Tim | Website URL: |
Hello I ve been following your web site for some time now and finally got the bravery to go ahead and give you a shout out from Atascocita Texas Just wanted to say keep up the great job
Author: Christel | Website URL: |
Hey there this is kind of of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I m starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience. Any help would be enormously appreciated
Author: Seth | Website URL: |
If you are going for most excellent contents like I do, simply pay a visit this site daily as it gives feature contents, thanks
Author: Gertie | Website URL: |
Great blog you ve got here.. It s hard to find excellent writing like yours nowadays. I truly appreciate individuals like you Take care
Author: Alejandra | Website URL:$100/Hour_-_Paid_Jobs |
My coder is trying to convince me to move to . net from PHP. I have always disliked the idea because of the costs. But he s tryiong none the less. I ve been using Movable-type on a number of websites for about a year and am worried about switching to another platform. I have heard great things about Is there a way I can transfer all my wordpress posts into it? Any help would be really appreciated
Author: Sean | Website URL: |
Have you ever thought about including a little bit more than just your articles? I mean, what you say is fundamental and everything. However think of if you added some great pictures or video clips to give your posts more, pop Your content is excellent but with pics and video clips, this website could undeniably be one of the best in its niche. Great blog