I wrote a jump function has been an error

Source: Internet
Author: User
 
  


Reply to discussion (solution)

Are you this PHP?
In addition, this code has an XSS attack vulnerability.

This can not be used directly in PHP, does not conform to PHP syntax

is not a 11-line else to capitalize else
It's best to post the wrong hints.

Are you this PHP?
In addition, this code has an XSS attack vulnerability.
Isn't the PHP code written like this? I am based on my previous write ASP changed, that is, under the DW warning can not be used, so ask

This can not be used directly in PHP, does not conform to PHP syntax
Can point out ah, ASP to PHP do not know whether this is written

is not a 11-line else to capitalize else
It's best to post the wrong hints.
DW is under the IF $_url= "then this line of warning

function ShowMsg ($_info,$_url) {    If ($_url== ""  ) {        echo "";    } else{         If ($_info== "")             header (' Location: '. $_url);        else            echo "";}            }

function ShowMsg ($_info,$_url) {    If ($_url== ""  ) {        echo "";    } else{         If ($_info== "")             header (' Location: '. $_url);        else            echo "";}            }

It turns out that there are so many errors, go back and look under, modify is the following look
function ShowMsg ($_info,$_url) {    if ($_url== "") {        echo "";    } else{         If ($_info== "") {header (' location: '. $_url);}        Else{echo "";}}    }

By the way, moderator, upstairs said that there are xxs loopholes??? What's the solution?

There's nothing wrong with that.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.