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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 } Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.