php-db | 2000121
Date: 12/13/00
- Next message: Joseph Hadinata: "[PHP-DB] Re: Format of Print"
- Previous message: Ignatius Teo: "[PHP-DB] RE: [PHP-WIN] Kinda silly question"
- In reply to: DEWA: "[PHP-DB] Kinda silly question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
DEWA:
Try:
if (isset($comp)) {
instead of
if ($comp) {
also change the double-quote to single-quote in:
echo "<form name='form' action='$PHP_SELF">";
this one __|
Saludos,
Pablo Vera
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Wednesday, December 13, 2000, 10:43:51 PM, DEWA wrote:
D> Maybe this one is a silly question ...
D> Could someone teach me about that damn $PHP_SELF ???
D> coz until now i can't get it work in anyway .. so i have to make a lot of pages.
D> i mean like whenever i wanna use it, it gaves me an error ...
D> ex:
D> if ($comp) {
D> bla bla bla
D> } else {
D> echo "<form name='form' action='$PHP_SELF">";
D> echo "<input type='text' name='comp'>";
D> echo "<input type='submit' value='get it'>";
D> echo "</form>";
D> or
D> echo "<form name='form' action='$PHP_SELF">";
D> echo "<input type='text' name='comp'>";
D> echo "<input type='submit' value='get it'>";
D> echo "</form>";
D> print "$comp";
D> It always said that :
D> Warning: Undefined variable: comp in c:\homepage\modify.php on line 10
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joseph Hadinata: "[PHP-DB] Re: Format of Print"
- Previous message: Ignatius Teo: "[PHP-DB] RE: [PHP-WIN] Kinda silly question"
- In reply to: DEWA: "[PHP-DB] Kinda silly question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

