Re: problem with a small script
| From: | George Pitcher | Date: | Tue, 11 Jun 2002 06:04:14 +0000 |
| Subject: | Re: problem with a small script | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19732@lists.php.net to get a copy of this message | ||
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" <mansu@softhome.net>
To: <php-db@lists.php.net>
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