Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with post and echo $_POST['var']

0 views
Skip to first unread message

ozeh

unread,
Oct 27, 2003, 2:38:50 AM10/27/03
to
Hi,

when I used metod post in a form, then i read posted variable and try
to print, I have :
In FORM text(variable_nr1) = 'test_var'
In php
<?php
echo $_POST['variable_nr1'];
?>
on screen :
test_varvariable_nr1=test_var

what's wrong on my server ?

Ian P. Christian

unread,
Oct 27, 2003, 6:34:19 AM10/27/03
to
ozeh wrote:

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

Tom Thackrey

unread,
Oct 27, 2003, 10:37:50 AM10/27/03
to

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
www.creative-light.com
tom (at) creative (dash) light (dot) com
do NOT send email to james...@willglen.net (it's reserved for spammers)

0 new messages