Forms problem (newbie of course...)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kde
Forum Newbie
Posts: 1
Joined: Sun Mar 23, 2003 11:11 pm

Forms problem (newbie of course...)

Post 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
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

must be an old tutorial, look in the sticky threads about posted variables and such...

$_REQUEST['answer']
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

It's an out of date tutorial - have a read of:
viewtopic.php?t=511

Mac
Post Reply