Hi
I have defined $person above this statement:
<input type='submit' name='submit' value='Click to view '.<?php echo $person ?>.'.'s '>
I was wondering what is wrong with this statement. Any help would be appreciated.
Thanks.
Is it already part of an echo? If so you can't nest another echo inside it. The period signs look wrong either way.
Looks to me like you have a syntax error. Change this line:
The single quote and period sign before the PHP code still looks wrong to me (assuming $person is part of the INPUT value).
With PHP embedded in normal HTML I'd do it like this:
Yes, that 1 period slipped past me during my edit. I have fixed it now. I just followed the OP's format but your format would work also.
There's an extra single quote as well, which will close the VALUE attribute value.
Boy, my eye is really going bad. Anyway, I would suggest the OP follow your example:
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)