Suman,

Firstly, it's a bit longer than necessary.

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

<?php
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.

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


hi
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">
              firstname:
                        <input type="text" name="fname" size="15">

this is te html scrript
----------------------------
and the php code is

<?

$fname=$_GET['fname'];
echo "$fname";
?>
-----------------------
but on executing this i get a blank page
what might be the error

suman


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to