From: | Roberto Mello <rmello(at)cc(dot)usu(dot)edu> |
---|---|
To: | Chris Smith <csmith(at)squiz(dot)net> |
Cc: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: PHP calling PHP? |
Date: | 2001-05-11 14:52:41 |
Message-ID: | 20010511085241.A19103@cc.usu.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Thu, May 10, 2001 at 03:23:31PM +1000, Chris Smith wrote:
>
> > > > echo "<FORM ACTION=\"$PHP_SELF\" METHOD=\"POST\">\n";
> > >
> > > Ack! You could do this for much better readability instead:
> > > echo "<FORM ACTION='$PHP_SELF' METHOD='POST'>\n";
^^^^^^^^^^^^^^^^
> Different quotes do different things in PHP, just something to remember...
True, but that's not what I did. My line of code is correct. The
single quotes are within the double quotes, and hence are treated as
literals and the variable is evaluated.
-Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.net
http://www.sdl.usu.edu - Space Dynamics Lab, Developer
* * * <- Tribbles <- teenage mutant ninja tribbles
From | Date | Subject | |
---|---|---|---|
Next Message | Grant | 2001-05-14 00:35:19 | Re: User reloads inert script... |
Previous Message | Chris Ryan | 2001-05-11 12:02:06 | Re: Variable question... |