Forum Moderators: coopster

Message Too Old, No Replies

Please help with the following error Parse error: parse error, unexp

         

shipmone

3:54 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



Can someone tell me whats wrong with this code:

<input type="submit" value="<?= ($password?" update="" password="" set="" password="">" name="submit">

I keep getting a pase error

dreamcatcher

4:33 pm on Jun 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, there are a number of problems with this line:

<input type="submit" value="<?= ($password?" update="" password="" set="" password="">" name="submit">

Firstly, no closing PHP tag. Secondly its what looks like a ternary operator with a colon missing and a missing closing parenthesis.

What are you trying to do?

shipmone

4:57 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



I just deleted an image tage from the top of the page and when I reinstalled the code it said I had a error on line 77. I never touched line 77. I really need help badly. Should I post the whole page code

shipmone

5:58 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



The following is the code I need help fixing
Thanks everyone

<td>
<form action="index.php?page=upload_photo" method='post"'>
<input name="private_password">
<input type="submit" value="<?= ($password?" update="" password="" set="" password=""> name="submit">
<input type="hidden" name="action" value="change_password">
</form>
</td>

jatar_k

10:52 pm on Jun 18, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



to be honest that is a bit of a mess

dreamcatcher touched on a couple things but I really can't guess at what that is supposed to be, no offence.

<input name="private_password">

that's no good, I assume that is supposed to be a password field so it should probably look more like

<input type="password" name="private_password">

the value of a submit button is what apperars on the button so I am not quite sure what this is

<input type="submit" value="<?= ($password?" update="" password="" set="" password=""> name="submit">

I would expect to see something more like this

<input type="submit" value="change password" name="submit">

not really sure what that is supposed ot do so that's about all I can tell you

shipmone

11:09 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



Thanks, I appreciate all the help. I will try this.

Erick