Re: Problem with post and echo $_POST['var']
On 27-Oct-2003, ozeh@wsp.czest. pl (ozeh) wrote:
[color=blue]
> when I used metod post in a form, then i read posted variable and try
> to print, I have :
> In FORM text(variable_n r1) = 'test_var'
> In php
> <?php
> echo $_POST['variable_nr1'];
> ?>
> on screen :
> test_varvariabl e_nr1=test_var
>
> what's wrong on my server ?[/color]
the echo you've shown would output 'test_var' the rest is output by
something else in your code. Show us the whole .php file and we'll point it
out to you.
--
Tom Thackrey
tom (at) creative (dash) light (dot) com
do NOT send email to jamesbutler@wil lglen.net (it's reserved for spammers)
Problem with post and echo $_POST['var']
Collapse
This topic is closed.
X
X
-
Guest replied -
Guest repliedRe: Problem with post and echo $_POST['var']
ozeh wrote:
[color=blue]
> Hi,
>
> when I used metod post in a form, then i read posted variable and try
> to print, I have :
> In FORM text(variable_n r1) = 'test_var'
> In php
> <?php
> echo $_POST['variable_nr1'];
> ?>
> on screen :
> test_varvariabl e_nr1=test_var
>
> what's wrong on my server ?[/color]
You're not being all that clear here... but perhaps you should try using
$_GET rather then $_POST.
If the vars are in the URL, you want $_GET.
--
Ian P. Christian
http://www.fuzzmail.co.uk ~ Free, Fast and Fuzzy webmail
Leave a comment:
-
Problem with post and echo $_POST['var']
Hi,
when I used metod post in a form, then i read posted variable and try
to print, I have :
In FORM text(variable_n r1) = 'test_var'
In php
<?php
echo $_POST['variable_nr1'];
?>
on screen :
test_varvariabl e_nr1=test_var
what's wrong on my server ?
Tags: None
Leave a comment: