我如何修复这个在PHP中回显的html表单? (我有一些错误) [英] How do I would I go about fixing this html form being echo'd in php? (I have a few errors)

查看:74
本文介绍了我如何修复这个在PHP中回显的html表单? (我有一些错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码

 <?php  
echo ' < form method =postaction =http:// n3dsemolga。 3owl.com/IP_Ban.php\">
< input type =textname =IPaddress/> <峰; br />
< input type =hiddenname =REALLYvalue ='
$ _ SERVER [' REMOTE_ADDR']; ' />
< input type =submitvalue =BAN! />
< / form>'
;
?>



我的错误

 解析 错误: 语法 错误意外  T_VARIABLE 期待   ';'   /home/u642042638/public_html/banfile. banhammer  php     line   4  





任何帮助都将不胜感激!

解决方案

_SERVER [< span class =code-string>' REMOTE_ADDR']; ' />
< input type =submitvalue =BAN!/>
< / form>'
;
?>



我的错误

 解析 错误: 语法 错误意外  T_VARIABLE 期待 ',< span class =code-leadattribute>' ';'   /home/u642042638/public_html/banfile. banhammer  php     line   4  





我们非常感谢任何帮助!


 < span class =code-summarycomment><?  php   
< span class =code-summarycomment>
echo '< form 方法 = post action = http://n3dsemolga.3owl.com/IP_Ban.php\">
< 输入 type = text name = IPaddress / > < br / >
< input type = hidden 名称 = 真的 value = '


_SERVER ['REMOTE_ADDR']' / >
< 输入 类型 = 提交 value = BAN! / >
< / form > ';
?>





请勿使用;之后


My Code:

<?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:

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!

解决方案

_SERVER['REMOTE_ADDR'];'"/> <input type="submit" value="BAN!" /> </form>'; ?>


My Errors:

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!


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


这篇关于我如何修复这个在PHP中回显的html表单? (我有一些错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆