473,503 Members | 12,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Variable Question


Hi,

I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.

Data is entered on FORM1 & FORM2, and will be displayed on FORM3.

Getting the data from FORM2 to FORM3 is not a problem, as the for data
is passed automatically via the POST method. But, how do I get the
variables from FORM1 to be passed 'through' FORM2 to be displayed on
FORM3? I do not want to use hidden fields in the HTML.....how else
can I do this?

Any help would be appreciated.

Thanks a lot!

John
Jun 2 '08 #1
5 1060
Mtek wrote:
Hi,

I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.

Data is entered on FORM1 & FORM2, and will be displayed on FORM3.

Getting the data from FORM2 to FORM3 is not a problem, as the for data
is passed automatically via the POST method. But, how do I get the
variables from FORM1 to be passed 'through' FORM2 to be displayed on
FORM3? I do not want to use hidden fields in the HTML.....how else
can I do this?

Any help would be appreciated.

Thanks a lot!

John
Sessions
Jun 2 '08 #2
You must to use Php Sessions.
All data will stored on $_SESSION['namesession'] , called Superglobal
variables.
For more infos:
http://php.net/manual/en/ref.session.php

Have a nice day.
On 2008-04-26 12:29:26 +0200, "Paul Lautman"
<pa**********@btinternet.comsaid:
Mtek wrote:
>Hi,

I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.

Data is entered on FORM1 & FORM2, and will be displayed on FORM3.

Getting the data from FORM2 to FORM3 is not a problem, as the for data
is passed automatically via the POST method. But, how do I get the
variables from FORM1 to be passed 'through' FORM2 to be displayed on
FORM3? I do not want to use hidden fields in the HTML.....how else
can I do this?

Any help would be appreciated.

Thanks a lot!

John

Sessions

--
::: Mr. Reku :::
~ Help me to improve my English, Thanks. ~

Jun 2 '08 #3
On 2008-04-26 12:29:26 +0200, "Paul Lautman"
<pa**********@btinternet.comsaid:
>Mtek wrote:
>>Hi,

I have a couple of PHP forms. Let's say FORM1, FORM2 & FORM3.

Data is entered on FORM1 & FORM2, and will be displayed on FORM3.

Getting the data from FORM2 to FORM3 is not a problem, as the for
data is passed automatically via the POST method. But, how do I
get the variables from FORM1 to be passed 'through' FORM2 to be
displayed on FORM3? I do not want to use hidden fields in the
HTML.....how else can I do this?

Any help would be appreciated.

Thanks a lot!

John

Sessions


::: Mr. Reku :::
~ Help me to improve my English, Thanks. ~
Mr.Reku wrote:
You must to use Php Sessions.
All data will stored on $_SESSION['namesession'] , called Superglobal
variables.
For more infos:
http://php.net/manual/en/ref.session.php

Have a nice day.

Please don't top post (top posting fixed)

Also, I did not ask this question, so why are you responding to me?


Jun 2 '08 #4
On 2008-04-26 18:56:05 +0200, "Paul Lautman"
<pa**********@btinternet.comsaid:
>
Also, I did not ask this question, so why are you responding to me?
Because it's the solution for your question ;)

Have a nice day
--
::: Mr. Reku :::
~ Help me to improve my English, Thanks. ~

Jun 2 '08 #5
On 2008-04-26 18:56:05 +0200, "Paul Lautman"
<pa**********@btinternet.comsaid:
Also, I did not ask this question, so why are you responding to me?
Sorry,
i've replied to you instead Mtek.

--
::: Mr. Reku :::
~ Help me to improve my English, Thanks. ~

Jun 2 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
1973
by: Mohanasundaram | last post by:
int i = 10; int main() { int i = 20; return 0; } Hi All, I want to access the global variable i inside the main. Is there
4
14866
by: Gery D. Dorazio | last post by:
Gurus, If a static variable is defined in a class what is the scope of the variable resolved to for it to remain 'static'? For instance, lets say I create a class library assembly that is...
23
19133
by: Russ Chinoy | last post by:
Hi, This may be a totally newbie question, but I'm stumped. If I have a function such as: function DoSomething(strVarName) { ..... }
3
1969
by: James Robertson | last post by:
I am new to the ASP and VB thing so be kind. Question I have is that I have created an ASPX web site to use as an E-Mail page. But I want to use this for a lot of users. Can I create the link on...
29
5055
by: garyusenet | last post by:
I'm trying to investigate the maximum size of different variable types. I'm using INT as my starting variable for exploration. I know that the maximum number that the int variable can take is:...
53
26329
by: fdmfdmfdm | last post by:
This is an interview question and I gave out my answer here, could you please check for me? Q. What are the memory allocation for static variable in a function, an automatic variable and global...
37
5426
by: minkoo.seo | last post by:
Hi. I've got a question on the differences and how to define static and class variables. AFAIK, class methods are the ones which receives the class itself as an argument, while static methods...
5
2220
by: somenath | last post by:
Hi All , I have one question regarding scope and lifetime of variable. #include <stdio.h> int main(int argc, char *argv) { int *intp = NULL; char *sptr = NULL;
19
2281
by: Hapa | last post by:
Does only reading (never writing) of a variable need thread synchronisation? Thanks for help? PS. Anybody knows a Visual C++ news group?
112
5350
by: istillshine | last post by:
When I control if I print messages, I usually use a global variable "int silent". When I set "-silent" flag in my command line parameters, I set silent = 1 in my main.c. I have many functions...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7470
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...
1
5026
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...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.