Re: substr parse error
| From: | Richard Lynch | Date: | Fri, 24 Nov 2000 20:16:45 +0000 |
| Subject: | Re: substr parse error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27031@lists.php.net to get a copy of this message | ||
There should be no space between <? and php in the previous line.
PHP is seeing this:
<?
php
$RD1 = ...
----- Original Message -----
From: "Mike" <mpeloso@princeton.edu>
Newsgroups: php.general
Sent: Wednesday, November 22, 2000 12:09 PM
Subject: [PHP] substr parse error
> Im getting an error on the first line[$R1D=substr($R1,0,1);] of this. $R1
> comes from a html form from a radio button.The name of the radio button is
> R1.Im getting a parse error.The files are pretty small so I could send
them
> If needed.
>
>
> <body>
> <? php
> $R1D=substr($R1,0,1);
> $R1P=substr($R1,1);
> $R2D=substr($R2,0,1);
> $R2P=substr($R2,1);........
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>