Re: Re: Not getting correct results from $_POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please use reply-all to make sure that your message goes to the list
----- Original Message -----
From: "Luis Moreira" <luis.moreira@xxxxxxxxxxxxxxx>
To: "'Mark Rees'" <mrees@xxxxxxxxxxxxxxxxx>
Sent: Monday, September 12, 2005 3:15 PM
Subject: RE:  Re: Not getting correct results from $_POST


> Mark,
>
> If you are using the correct method, then probably you are using a
> wrong NAME.
> You must have a field called "led" in the form you submit with the
> post.
>
> Luis
>
> -----Original Message-----
> From: Mark Rees [mailto:mrees@xxxxxxxxxxxxxxxxx]
> Sent: segunda-feira, 12 de Setembro de 2005 14:50
> To: php-windows@xxxxxxxxxxxxx
> Subject:  Re: Not getting correct results from $_POST
>
> > Please suggest what I have done wrong with the following lines of
> > php:-
> >
> > $MachineNum = $_POST['led'];   // led is the variable in the html that
> calls this php
> >
> > $SQL = sprintf("select a_date, a_time, amnt from register where
> > mac_name = %s and message_id = 34 or message_id = 35 order by a_date
> > desc, a_time desc", $MachineNum);
> >
> > when I attempt to see what is in $SQL via a printf I get
> >
> > select a_date, a_time, amnt from jackpot_register where mac_name = ''
> > and message_id = 34 or message_id = 35 order by a_date desc, a_time
> > desc
> >
> > I suspect that my C programming roots are showing but after a few
> > hours of
> looking I am just getting frustated.
> >
> > I have tried printing and there is nothing in $MachineNum and
> > $_REQUEST &
> $_GET gives the same result, nothing.
> >
> > I have also checked the HTML page that does the call and it definately
> says method="post"
> >
>
> Are you sure? The PHP looks OK. Are you submitting a form with the "led"
in
> it?
>
> > --
> >
> > Regards,
> > Alf Stockton www.stockton.co.za
> >
> > In the stairway of life, you'd best take the elevator.
> >
> > My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux