You  need to take a second look at the way you are refering to the
varialbles in the process page.

You are using the POST method in the method='POST' in the form, but on the
process page you are refering to it via $_GET['...']  change this to
$_POST['...'] and you should be fine.

Jim Lucas
----- Original Message ----- 
From: "chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 23, 2003 1:34 PM
Subject: Re: [PHP] Problem with the post variables.


> On Mon, 18 Aug 2003 18:35:09 +0200, Wouter Van Vliet <[EMAIL PROTECTED]>
> wrote:
>
> > The problem is probably in the 'enctype="multipart/form-data"'. You
> > should
> > only use this enctype if you're gonna upload a file through the form. If
> > not, just leave it away or use text/plain
> >
> > Wouter
>
> Why would that be the problem?  Regardless of the enctype, it should still
> create POST/GET data for whatever else was in the form.  Yes,
> multipart/form-data *should* only be used if they are uploading a file.
> That doesn't mean PHP should ignore additional POST/GET data from the
> form, which it has had a history of doing, depending on which way the wind
> blows or the price of tea in China.
>
> > -----Oorspronkelijk bericht-----
> > Van: Klaus Kaiser Apolinário [mailto:[EMAIL PROTECTED]
> > Verzonden: maandag 18 augustus 2003 16:04
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: [PHP] Problem with the post variables.
> >
> >
> > Guys I have a problem here.
> > I'm using PHP 4.3.2 and httpd 1.3.28.
> > Look my exemple.
> > I have a page whith a Form method post, and I submit this page to
> > teste2.php, but I dont can request de data from the text box...
> >
> >
> > #######################
> > This is the test page
> >
> > <html>
> > <body>
> > <form action="teste2.php" method="post" enctype="multipart/form-data">
> > <input type="text" name="texto">
> > <input type="submit" value="ok">
> > </form>
> > </body>
> > </html>
> >
> > #####################
> > Teste2.php
> >
> > <?php
> > $string = $_POST['texto'];
> > echo "Var em post: ".$string."<br>";
> > echo "Var em get: ".$_GET['texto']."<br>";
> >
> >
> > //phpinfo();
> > ?>
> > ############################################
> >
> > Some one can help me...???
> >
> > Klaus Kaiser Apolinário
> > Curitiba online
> >
> >
>
>
>
> -- 
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to