Empty GET variables displaying in the URL

前端 未结 6 749
星月不相逢
星月不相逢 2020-12-18 17:04

Here is my form :

\';
echo \'

        
6条回答
  •  太阳男子
    2020-12-18 17:08

    Its not a PHP problem, Its whats populating the form. All values in the form are sent. You would need to use Javascript to check for that.

    If a form item is set to disabled, It wont be sent for example

    
    

    http://api.jquery.com/ready/ Should work if placed anywhere on the page

    Also you dont need to echo HTML

    '; echo '$info2 = '.$_GET["info2"].'
    '; echo '$info3 = '.$_GET["info3"].'
    '; ?>

    Seperates the PHP and HTML

提交回复
热议问题