Home > Software engineering >  Why always tip 404 not
Why always tip 404 not

Time:09-21

Post the form submission data, display can not find a file, but the get method can obtain the data submitted, this is the reason why
//the foreground code

<meta HTTP - equiv="content-type" Content="text/HTML. charset=utf-8"/>
Using the $_GET and $_POST variables of the output page & lt;/title> <br/><style type="text/css"> <br/><! - <br/>. STYLE1 {<br/>Color: # 990000; <br/>font-weight: bold; <br/>font-size: 36px; <br/>}<br/>. STYLE2 {the font - size: 12 px} <br/>--> <br/></style> <br/></head> <br/><body> <br/><The form id="form1" name="form1" method="GET" action="GET. PHP & gt;" <br/><P align="center" & gt; Using the $_GET variable submit data & lt;/p> <br/><P align="center" & gt; <br/><Span & gt; User name: & lt;/span> <br/><Label> <br/><Input name="user" type="text" size="15" id="user"/& gt; <br/></label> <br/><Span & gt; Password: & lt;/span> <br/><Label> <br/><Input name="pass" type="password" size="15" id="pass"/& gt; <br/></label> <br/><Label> <br/><Input type="submit" name="submit" value="submit" https://bbs.csdn.net/topics//& gt; <br/></label> <br/></p> <br/></form> <br/><The form id="form2" name="form2 method=" POST "action=" "POST. PHP & gt;" <br/><P align="center" & gt; Using $_POST variables submitted data & lt;/p> <br/><P align="center" & gt; <br/><Span & gt; User name: & lt;/span> <br/><Label> <br/><Input name="user" type="text" size="15" id="user"/& gt; <br/></label> <br/><Span & gt; Password: & lt;/span> <br/><Label> <br/><Input name="pass" type="password" size="15" id="pass"/& gt; <br/></label> <br/><Label> <br/><Input type="submit" name="Submit2" value="submit" https://bbs.csdn.net/topics//& gt; <br/></label> <br/></p> <br/></form> <br/><br/></body> <br/></html> <br/><br/><br/>//code <br/><! PUBLIC DOCTYPE HTML "-////W3C DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" & gt; <br/><HTML XMLNS="http://www.w3.org/1999/xhtml" & gt; <br/><head> <br/><meta HTTP - equiv="content-type" Content="text/HTML. charset=utf-8"/> <br/><title> Using the $_GET variable output page & lt;/title> <br/></head> <br/><br/><body> <br/><? PHP <br/>If (isset ($_GET [' Submit ']) and $_GET [' Submit ']=="Submit") {<br/>Echo "the user is called:". $_GET [' user ']. "& lt; Br> "; <br/>Echo "password:". $_GET [' pass ']; <br/>}<br/>?> <br/></body> <br/></html> <br/><br/>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- <br/>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- <br/><! PUBLIC DOCTYPE HTML "-////W3C DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" & gt; <br/><HTML XMLNS="http://www.w3.org/1999/xhtml" & gt; <br/><head> <br/><meta HTTP - equiv="content-type" Content="text/HTML. charset=utf-8"/> <br/><title> Using $_POST variables output page & lt;/title> <br/></head> <br/><br/><body> <br/><? PHP <br/>If (isset ($_POST [' Submit2 ']) and $_POST [' Submit2]=="submit") {<br/>Echo "the user is called:". $_POST [' user ']. "& lt; Br> "; <br/>Echo "password:". $_POST [' pass ']; <br/>}<br/>?> <br/></body> <br/></html> <br/><br/><img SRC="https://img.codepudding.com/202009/92142211527531.png" Alt=""/> <br/><img SRC="https://img.codepudding.com/202009/92142211527532.png" Alt=""/> <br/><img SRC="https://img.codepudding.com/202009/92142211527533.png" Alt=""/> </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/Softwareengineering/18659.html" target="_blank" style="color:#999">https//www.codepudding.com/Softwareengineering/18659.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/Softwareengineering/18658.html'>labview</a></div> <div class="detail-arr-right">Next:<a href='/Softwareengineering/18660.html'>How about the color of the MFC in the corresponding Duilib AS color?</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=unskilled' target='_blank'>unskilled</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>