|
Posted by Cerebral Believer on 10/11/73 11:59
I should have pointed out that line 318 is the line displayed, and the error
is a syntax error, unexpected '='...
"Cerebral Believer" <nospamthanks@hadenoughalready.com> wrote in message
news:YgSSg.35219$TF5.15047@newsfe1-win.ntli.net...
> Hi folks,
>
> I am having trouble identifying the error here can anyone help?
>
> Parse error: syntax error on line 318
>
> $e-mail_1 = $_POST['e-mail_1'];
>
> Also will my use of " " (double quotes) instead of ' ' (single quotes)
> make much difference to the way this code works? It is from a section of
> code that is returning values to a form after it has been validated.
>
> <tr>
> <td>
> {$label_array['int_code']}
> </td>
> <td>
> <input type="text" class="f_form" name="int_code" value="$int_code"
> size="3" title="International Code: valid characters 0-9, (3 digits)"/>
> </td>
> </tr>
>
> I am transfering an HTML form in XHTML 1.0 Transitional to php. The book
> I am reading has the code listed like this:
>
> <tr>
> <td>
> {$label_array['int_code']}
> </td>
> <td>
> <input type='text' class="f_form" name='int_code' value='$int_code'
> size='3' title="International Code: valid characters 0-9, (3 digits)"/>
> </td>
> </tr>
>
> So the code in the book is presented in single quotes instead of double
> quotes, but the extra code I have inserted is still in single quotes. I
> know I need to specify maxlength values too. Will the difference in use
> of quotes make much differnce?
>
> Regards,
> C.B.
>
Navigation:
[Reply to this message]
|