PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > PHP Variable Question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
PHP Variable Question

Réponse
 
LinkBack Outils de la discussion
Vieux 26/04/2008, 05h00   #1
Mtek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 would be appreciated.

Thanks a lot!

John
  Réponse avec citation
Vieux 26/04/2008, 11h29   #2
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP Variable Question

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 would be appreciated.
>
> Thanks a lot!
>
> John


Sessions


  Réponse avec citation
Vieux 26/04/2008, 11h52   #3
Mr.Reku
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP Variable Question

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"
<paul.lautman@btinternet.com> said:

> 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 would be appreciated.
>>
>> Thanks a lot!
>>
>> John

>
> Sessions



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

  Réponse avec citation
Vieux 26/04/2008, 17h56   #4
Paul Lautman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP Variable Question

> On 2008-04-26 12:29:26 +0200, "Paul Lautman"
> <paul.lautman@btinternet.com> said:
>
>> 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 would be appreciated.
>>>
>>> Thanks a lot!
>>>
>>> John

>>
>> Sessions

>
>
>::: Mr. Reku :::
> ~ 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?




  Réponse avec citation
Vieux 27/04/2008, 11h35   #5
Mr. Reku
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP Variable Question

On 2008-04-26 18:56:05 +0200, "Paul Lautman"
<paul.lautman@btinternet.com> said:

>
> 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 :::
~ me to improve my English, Thanks. ~

  Réponse avec citation
Vieux 27/04/2008, 11h41   #6
Mr. Reku
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: PHP Variable Question

On 2008-04-26 18:56:05 +0200, "Paul Lautman"
<paul.lautman@btinternet.com> said:

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


Sorry,
i've replied to you instead Mtek.

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13579 seconds with 14 queries