我想在IE8中href工作type="button".
<a href="submit.php"><input type="button" value="Submit" class="button" /></a>
Run Code Online (Sandbox Code Playgroud)
其他浏览器工作正常,但在IE8上面的代码不起作用.怎么解决?
更新
<form action="submit.php" method="post"">
<input type="submit" value="Submit" class="button" />
</form>
Run Code Online (Sandbox Code Playgroud)
我知道这种方式可以做到.但我想知道如何让它在IE8上运行而不需要的其他方法<form></form>
function validation(reg) {
str = document.reg;
if (str.name.value == "") {
alert("Enter your name");
str.name.focus();
return false;
}
Run Code Online (Sandbox Code Playgroud)
如果输入为空,验证将正常工作.
问题
怎么预防呢?
如何删除www并验证有效域名。
有效域
domain.com
subdomain.domain.com
sub-domain.domain.com
Run Code Online (Sandbox Code Playgroud)
无效的网域
www.domain.com
www.subdomain.domain.com
http://www.domain.com/
http://www.subdomain.com/
www.domain.com/folder/
Run Code Online (Sandbox Code Playgroud)
怎么写代码?
$domain ='www.domain.com/folder/';
if() {
// validate here
}
Run Code Online (Sandbox Code Playgroud) 让我们说我的Facebook应用程序网址http://fb.domain.com/和应用程序网址是http://apps.facebook.com/demoapp/
现在我希望用户无法直接打开应用程序URL,必须在Facebook上的iframe中.
http://apps.facebook.com/demoapp/如果用户直接打开链接,如何检测和重定向链接?
让我知道关键.
如何设置我的跨度 display:inline-block
$("#checking").fadeTo(200, 0.1, function ()
{
$(this).html('Username is not available').addClass('cross').fadeTo(900, 1);
});
Run Code Online (Sandbox Code Playgroud)
电流输出
<span style="display: inline; opacity: 1;" id="checking" class="cross">Username is not available</span>
Run Code Online (Sandbox Code Playgroud)
在CSS中我设置了跨类inline-block.
让我知道如何制作style="display: inline; opacity: 1;"遗嘱style="inline-display: inline; opacity: 1;"
有办法通过PHP脚本阻止一些用户代理?关于mod_security的示例
SecFilterSelective HTTP_USER_AGENT "Agent Name 1"
SecFilterSelective HTTP_USER_AGENT "Agent Name 2"
SecFilterSelective HTTP_USER_AGENT "Agent Name 3"
Run Code Online (Sandbox Code Playgroud)
我们也可以通过示例阻止他们使用htaccess或robots.txt但我想在php中.任何示例代码?
我以前的服务器工作正常..今天我改变了新服务器并且得到RewriteRule无法在我的htaccess上编译正则表达式.
如何修复此行.
RewriteRule ^category/([0-9]+)(?:/([^/]+)(?:/([^/]+))?)(?:/([^/]+)(?:/([^/]+))?)?/$ ./category.php?pid=$1&catname=$2&page=$3 [L]
Run Code Online (Sandbox Code Playgroud)
让我知道 :)
如何在下面的select语句中获得正确的结果
SELECT * FROM ads
WHERE ad_status='1'
AND ad_region='Location One' OR ad_region='Location Two' OR ad_region='Location Three'
AND ad_type='For Rent'
ORDER BY ad_id
DESC LIMIT 10
Run Code Online (Sandbox Code Playgroud)
本声明将返回所有ad_type(For Rent,Wanted,For Sale等),但我For Rent只想要.
我认为问题是ad_region因为有OR.如果没有"OR"(单个位置),结果是正确的.
让我知道.
php ×4
facebook ×2
javascript ×2
jquery ×2
regex ×2
.htaccess ×1
animation ×1
dns ×1
html ×1
image ×1
mod-rewrite ×1
mysql ×1
redirect ×1
trim ×1
user-agent ×1
validation ×1
xhtml ×1