Jump to content

[SOLVED] need help with error


odetron

Recommended Posts

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>
?>
&copy 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

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.

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 }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.