Page 1 of 1

Forms problem (newbie of course...)

Posted: Sun Mar 23, 2003 11:11 pm
by kde
Couldn't figure out what WENT WRONG ?? is it a version issue ? this is what the tutorial taught me. Wrote a HTML form with form name="answer" and post it to a PHP file to get displayed. PHP looks like this

Code: Select all

<?php echo "<br> answer=$answer"; ?>
and also

Code: Select all

<?php echo "answer=" .$answer; ?>
but keep getting variable undeclared ????... appreciate any thought

Posted: Sun Mar 23, 2003 11:30 pm
by Stoker
must be an old tutorial, look in the sticky threads about posted variables and such...

$_REQUEST['answer']

Posted: Mon Mar 24, 2003 2:05 am
by twigletmac
It's an out of date tutorial - have a read of:
viewtopic.php?t=511

Mac