Re: [PHP-DB] problem with a small script

2002-06-11 Thread Jason Wong

On Tuesday 11 June 2002 14:04, George Pitcher wrote:
 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.

That requires 'register_globals' to be enabled, which for security reasons 
should be disabled, and is disabled by default on php 4.1.X and above.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Pecor's Health-Food Principle:
Never eat rutabaga on any day of the week that has a y in it.
*/


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




[PHP-DB] problem with a small script

2002-06-10 Thread suman

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




Re: [PHP-DB] problem with a small script

2002-06-10 Thread George Pitcher

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