![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Another "parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING" problemFound this in a php book (so you would think it would at least work
) and when trying to execute I come up with:Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/movie/public_html/final/register.php on line 12 PHP Code:
I found in another post to add '".."' to the variable. I did, and it did not make a difference. |
|
#2
|
|||
|
|||
|
Couple of problems here...
1. The script starts by assuming short_tags are "on" (<? versus <?php), which may not be true for your server. 2. Your first three echo statements are wrong. You are opening with double-quotes and closing with single-quotes. Pick one or the other. In this case, since you don't have any parsed variables or newlines, I recommend using single-quotes (for a minor speed boost). 3. Your 'form action' is screwed up. On the line preceding, you drop out of PHP-mode (?>). You then proceed to insert PHP code into the HTML. I think What it is supposed to be saying is... PHP Code:
Code:
HTH! |
|
#3
|
|||
|
|||
|
Got all that done, seem to help a little then:
Parse error: parse error in /home/movie/public_html/final/register.php on line 59 Which is the final line PHP Code:
|
|
#4
|
|||
|
|||
|
Whoops, sorry... there was one other error I missed.
This: PHP Code:
PHP Code:
|
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The