9 Replies - 10139 Views - Last Post: 29 April 2011 - 04:43 AM Rate Topic: -----

#1 carmelraj   User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 50
  • Joined: 28-April 11

how to pass number from one page to another through session in php?

Posted 29 April 2011 - 12:07 AM

I want to pass numbers from one page to another page by using session in php.For example i am selecting numbers using radio button after selecting it and when i clicked the submit button the selected number should send it to another page through session.I tried it but its not working.Is there any body to help me....
Is This A Good Question/Topic? 1
  • +

Replies To: how to pass number from one page to another through session in php?

#2 helperhawk321   User is offline

  • New D.I.C Head

Reputation: 8
  • View blog
  • Posts: 27
  • Joined: 27-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 12:26 AM

If I were you, I would have used the query string
Was This Post Helpful? 1
  • +
  • -

#3 carmelraj   User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 50
  • Joined: 28-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 12:30 AM

what is query string please explain and how to use it?
Was This Post Helpful? 1
  • +
  • -

#4 helperhawk321   User is offline

  • New D.I.C Head

Reputation: 8
  • View blog
  • Posts: 27
  • Joined: 27-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 12:38 AM

Use the following tutorial http://www.plus2net..../variables2.php

It shows you how to pass value from one page to another using variables written as a query string

I hope it helps

This post has been edited by helperhawk321: 29 April 2011 - 12:40 AM

Was This Post Helpful? 1
  • +
  • -

#5 carmelraj   User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 50
  • Joined: 28-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 12:49 AM

i am working in server not in localhost. Is it work in server?
Was This Post Helpful? 1
  • +
  • -

#6 helperhawk321   User is offline

  • New D.I.C Head

Reputation: 8
  • View blog
  • Posts: 27
  • Joined: 27-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 01:00 AM

I think it works.
Was This Post Helpful? 1
  • +
  • -

#7 carmelraj   User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 50
  • Joined: 28-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 02:31 AM

passing through quer string is working. value is passing to another page. how get and print that value. i use get method but its not working.
Was This Post Helpful? 1
  • +
  • -

#8 helperhawk321   User is offline

  • New D.I.C Head

Reputation: 8
  • View blog
  • Posts: 27
  • Joined: 27-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 04:23 AM

****This text is found in the link I gave you earlier***

Every scripting language pages has its own way of receiving the data from the URL
While receiving the data based on the server settings the values will be available to the pages. Here in a server running PHP will have to see the global settings of the server on how to collect the data.

$id=$_GET['id'];
$user=$_GET['user'];


Same way in ASP environment running VB script the data can be collected and assigned like this

Id = Request.QueryString("id")
User = Request.QueryString(�user�)

This post has been edited by helperhawk321: 29 April 2011 - 04:23 AM

Was This Post Helpful? 1
  • +
  • -

#9 carmelraj   User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 50
  • Joined: 28-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 04:27 AM

we should use only GET method to get the values fro url..
Was This Post Helpful? 1
  • +
  • -

#10 carmelraj   User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 50
  • Joined: 28-April 11

Re: how to pass number from one page to another through session in php?

Posted 29 April 2011 - 04:43 AM

its working thx a lot.....
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1