English 中文(简体)
基本问题
原标题:Basic php question
  • 时间:2010-08-24 03:33:43
  •  标签:
  • php
  • html

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类型比较表 记录操作员

我只是需要重新安排建筑,以解决我的问题。





相关问题
CSS working only in Firefox

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

image changed but appears the same in browser

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

Firefox background image horizontal centering oddity

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

Separator line in ASP.NET

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!