Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Code:
PHP
<?php
    echo '<form  method="post" action="http://n3dsemolga.3owl.com/IP_Ban.php">
    <input type="text" name="IPaddress" /> <br/>
    <input type="hidden" name="REALLY" value="'$_SERVER['REMOTE_ADDR'];'"/>
    <input type="submit" value="BAN!" />
    </form>';
?>

My Errors:
CSS
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/u642042638/public_html/banfile.banhammer.php on line 4


Any help would be greatly appreciated!
Posted

1 solution

XML
<?php
    echo '<form  method="post" action="http://n3dsemolga.3owl.com/IP_Ban.php">
    <input type="text" name="IPaddress" /> <br/>
    <input type="hidden" name="REALLY" value="'$_SERVER['REMOTE_ADDR']'"/>
    <input type="submit" value="BAN!" />
    </form>';
?>


don´t use the ; after $_SERVER['REMOTE_ADDR']
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900