New to php. 谁能告诉我,这意味着什么?
if(!isset($_POST[ submit ]) || $Email!=$ConfirmEmail || !$info_str || !$valid_email)
New to php. 谁能告诉我,这意味着什么?
if(!isset($_POST[ submit ]) || $Email!=$ConfirmEmail || !$info_str || !$valid_email)
IF
There is no element named submit in the _POST array
OR
if $Email is not equal to $ConfirmEmail
OR
$info_str is empty
OR
$valid_email is zero
then do something...mostly split an error to the user.
有效检查错误,确保申请通过提交表格提出,拥有与确认的电子邮件相匹配的有效电子邮件,无空净值。
它进行了一系列检查,看看某些变量/后领域是否是定的,或电子邮件和ConfirmEmail变量与否。
缩略为碎片:
if( < IF
!isset($_POST[ submit ]) < NOT (IS SET (POST FIELD submit ))
|| < OR
$Email!=$ConfirmEmail < VARIABLE Email IS NOT EQUAL TO VARIABLE ConfirmEmail
|| < OR
!$info_str < NOT (VARIABLE info_str IS A TRUE VALUE)
|| < OR
!$valid_email < NOT (VARIABLE valid_email IS A TRUE VALUE)
)
请注意,由于<代码>!“nots”,许多条件实际上正好相反(即,如果$valid_email
实际上是false Value-例如null
)。
它是有效方。 如果提交表格和电子邮件形式平等,则界定其他变量。
if ( // if
!isset($_POST[ submit ]) // submit element in $_POST array is not set
|| // or
$Email != $ConfirmEmail // $Email does not equal $ConfirmEmail
|| // or
!$info_str // $info_str is false
|| // or
!$valid_email // $valid_email is false
)
<>code>, The negated ! 见。 PHP类型比较表和 记录操作员。
我只是需要重新安排建筑,以解决我的问题。
I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....
I have a div <div id="masterdiv"> which has several child <div>s. Example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="...
I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...
<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js ...
So I ve got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I ...
I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!