473,401 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Passing values from one php page to another

250 100+
I'm developing web application using php and my sql. And use Jpgraph for graph creation. Because of the probelm to edit jpgraph php file i want to pass values to it.

Ex. main.php have
[PHP]if(isset($_POST['Submit_DISPLAY'])){
$last=$_POST['las'];
$SID=$_POST['SID'];
$Date=$_POST['Date'];

$today = date("y-m-d H:i:s");
;
$q = mysql_query("SELECT * FROM db WHERE ' AND SID= '$SID'");
while($row = mysql_fetch_array($q)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}

}
}

[/PHP]
i want to pass this values to jpgraph.php. How can i do that?
Apr 22 '08 #1
4 4158
Markus
6,050 Expert 4TB
I'm developing web application using php and my sql. And use Jpgraph for graph creation. Because of the probelm to edit jpgraph php file i want to pass values to it.

Ex. main.php have
[PHP]if(isset($_POST['Submit_DISPLAY'])){
$last=$_POST['las'];
$SID=$_POST['SID'];
$Date=$_POST['Date'];

$today = date("y-m-d H:i:s");
;
$q = mysql_query("SELECT * FROM db WHERE ' AND SID= '$SID'");
while($row = mysql_fetch_array($q)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}

}
}

[/PHP]
i want to pass this values to jpgraph.php. How can i do that?
to pass values between pages you can use: POST, GET, SESSION and COOKIE.

Have a read about them - SESSION or GET may be more suited.
Apr 22 '08 #2
ronverdonk
4,258 Expert 4TB
ghjk: You asked the same question (more or less) in another thread by you Using sessions in PHP

Why are you asking it again here?

Ronald
Apr 22 '08 #3
ghjk
250 100+
ghjk: You asked the same question (more or less) in another thread by you Using sessions in PHP

Why are you asking it again here?

Ronald

Im new to php and i don't know session can use to above problem also.
Apr 23 '08 #4
TheServant
1,168 Expert 1GB
Im new to php and i don't know session can use to above problem also.
Did you do the tutorial on Sessions markus gave you? If so, do you not understand something? WHy ahve you not tried to use sessions in you code?
Apr 23 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
2
by: Gordon Hudson | last post by:
Hello Here is what I am trying to do: Make a hyperlink on a data entry form with its URL built from the values for fields in that entry on the database. So, I would go to record 65785 click...
3
by: Joe Bloggs | last post by:
Does anyone know if its possible to pass parameters or the values of Request.QueryString from a web page to a custom control class? I'm using a C# Web Application. For Example I have Web Page1...
7
by: Anne | last post by:
hie there, i want to be able to pass multiple parameters to another page. currently, i am able to do so, but somehow i feel it is not the correct way to do it. below is part of what i have so far....
1
by: Iyigun Cevik | last post by:
I'm passing my form to another page by using Server.Transfer method. I wrote readonly properties for each textbox in the first page, and i'm getting values of these textboxes from second page from...
1
by: Russell | last post by:
Hi there, I'm currently creating a .NET Web Application and I have a question about passing values from one screen to another. I previously used Session variables in the code to store these...
2
by: Jim Heavey | last post by:
I know that I can create session variables and pass those values from one screen to another, but is there not a way to makes variables from one scree n available to another screen other then...
4
by: gkr | last post by:
Hi I would like to pass values/data from Page1 to Page 2, then capture values on page 2 and return back to Page 1 with the values from page2. Can you pls guide me on how to do this ? I tried...
8
by: Chris | last post by:
Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1 Private Sub...
4
by: RipperT | last post by:
College newbie here (Instructor MIA). I have instructions to pass variable values from one web page to another like this (VS2005): 1. Declare and create the properties on the first page (source...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.