Re: Strange Problem
| From: | Jamie Alessio | Date: | Wed, 25 Oct 2000 23:47:17 +0000 |
| Subject: | Re: Strange Problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3902@lists.php.net to get a copy of this message | ||
The problems is most likely that your <FORM> has no METHOD or ACTION. You
need something like:
<FORM METHOD="POST" ACTION="<?=$PHP_SELF?>">
Some browsers will default the action to the current script so this will
actually work and some do not. Either way you always should have a METHOD
and an ACTION in a FORM tag.
- Jamie
----- Original Message -----
From: "Opec Kemp ( Ozemail )" <okemp@ozemail.com.au>
To: "True Software Solutions Private Limited" <info@truesoft.net>
Cc: <php-db@lists.php.net>
Sent: Wednesday, October 25, 2000 3:47 PM
Subject: RE: [PHP-DB] Strange Problem
> Hi,
>
> >From what I've seen of your code snipplet, you didn't set any value to
the $name variable. It's probably priting the
> variable except that there is nothing in it so it's a correct behaviour ie
print a blank.
> Try assigning a value to your variable like
>
> $name = "Testing";
>
> Then try to echo() it.
>
>
> > -----Original Message-----
> > From: True Software Solutions Private Limited [mailto:info@truesoft.net]
> > Sent: Thursday, October 26, 2000 2:11 AM
> > To: php-db@lists.php.net
> > Subject: [PHP-DB] Strange Problem
> >
> >
> > Dear Friends,
> >
> > I have just started working on PHP, and am facing a strange problem, I
tried
> > to run a small application : -
> >
> > **********************
> > <html>
> > <form>
> > Please enter your user name :<br>
> > <input type=text name=name>
> > <input type=submit value="Submit Data">
> > </form>
> >
> > <?
> > echo("Welcome ");
> > echo($name);
> > ?>
> > </html>
> > **********************
> >
> > Now, it echo's the line "Welcome " but $name never gets printed. Please
try
> > to run this script on you system and see if you also get the same
problem.
> >
> > I will appriciate if anyone can help it out (I am using PHP 4.0 with
> > Microsoft Personal Web Server).
> >
> > Best Regards,
> > Ashish Chamoli
> > True Software Solutions Private Limited
> > 515, Suneja Tower - II,
> > 12 District Centre Janakpuri,
> > New Delhi - 110058 (India)
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>