Firstly, it's a bit longer than necessary.

Make your form a 'POST' rather than 'GET' and you'll hide your query and

echo $fname;

will then be the equivalent.

I presume that you have been able to display other PHP stuff?

Check your php.ini file and make sure that the part that allows you to use
the short <? rather than having to always use <?php is enabled.

----- Original Message -----
From: "suman" <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 10:43 PM
Subject: [PHP-DB] problem with a small script

i can't understand whats missing here.thou i knew this ques is asked many
times i couldn't find an ans for it.

              <form method=get  action="stuinfo.php">
                        <input type="text" name="fname" size="15">

this is te html scrript
and the php code is


echo "$fname";
but on executing this i get a blank page
what might be the error


PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to