odetron Posted February 9, 2007 Share Posted February 9, 2007 Im haveing trouble with this error i found in a code Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/www/phimil.freehostia.com/pwnage/index.php on line 9 Parse error: parse error, unexpected T_STRING in /home/www/phimil.freehostia.com/pwnage/index.php on line 9 Heres the code i have <HTML> <HEAD> <TITLE> Pwned </TITLE> </HEAD> <BODY> <?php <form action="pwner.php" method="get"> Name: <input type="text" name="name" /><br> Nick name: <input type="text" name="nick" /><br> Something That describes you: <input type="text" name="des" /><br> Your banner url:<input type="text" name="ban" /><br> <input type="submit" /> </form> ?> © 2006 odetron </BODY> </HTML> Whats wrong with it? Link to comment https://forums.phpfreaks.com/topic/37840-solved-need-help-with-error/ Share on other sites More sharing options...
Jessica Posted February 9, 2007 Share Posted February 9, 2007 You have HTML inside your PHP. There is actually no PHP in your <?php tags. Make it plain HTML, not PHP. Link to comment https://forums.phpfreaks.com/topic/37840-solved-need-help-with-error/#findComment-181116 Share on other sites More sharing options...
odetron Posted February 9, 2007 Author Share Posted February 9, 2007 now it looks like this {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 \par \par \par \par \par \par \par Name:[ ] \par Nick name: [ ] \par Something That describes you:[ ] \par Your banner url:[ ] \par [submit]\par \par \par © 2006 odetron\par \par \par \par } Edit Never mind, its just the text editor im useing. Link to comment https://forums.phpfreaks.com/topic/37840-solved-need-help-with-error/#findComment-181118 Share on other sites More sharing options...
spfoonnewb Posted February 9, 2007 Share Posted February 9, 2007 Yeah, no need for PHP there, but if you want something to show through PHP like that you can use: <?php echo " <form action=\"pwner.php\" method=\"get\"> Name: <input type=\"text\" name=\"name\" /><br> Nick name: <input type=\"text\" name=\"nick\" /><br> Something That describes you: <input type=\"text\" name=\"des\" /><br> Your banner url:<input type=\"text\" name=\"ban\" /><br> <input type=\"submit\" /> </form> "; ?> Just using: <form action="pwner.php" method="get"> Name: <input type="text" name="name" /><br> Nick name: <input type="text" name="nick" /><br> Something That describes you: <input type="text" name="des" /><br> Your banner url:<input type="text" name="ban" /><br> <input type="submit" /> </form> Shows up like: ? {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 \par \par \par \par \par \par \par Name:[ ] \par Nick name: [ ] \par Something That describes you:[ ] \par Your banner url:[ ] \par [submit]\par \par \par © 2006 odetron\par \par \par \par } Link to comment https://forums.phpfreaks.com/topic/37840-solved-need-help-with-error/#findComment-181120 Share on other sites More sharing options...
Jessica Posted February 9, 2007 Share Posted February 9, 2007 *\generator Msftedit What are you using? Just use a text editor. Link to comment https://forums.phpfreaks.com/topic/37840-solved-need-help-with-error/#findComment-181121 Share on other sites More sharing options...
odetron Posted February 9, 2007 Author Share Posted February 9, 2007 yeah, i just realized word pad isn't the best editor. so when i chnged it to note pad i saw it was word pads fault. Link to comment https://forums.phpfreaks.com/topic/37840-solved-need-help-with-error/#findComment-181122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.