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
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.

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.