Basic phpinput solution-php Tutorial

Source: Internet
Author: User
Basic phpinput1.htm page & lt; inputtype & quot; text & quot; name & quot; find & quot; & gt; & lt; ahref & quot; 123.php? F $ tt & quot; & gt; query & lt; a & gt; 1. php page $ find $ _ G [gp_find]; $ tt $ find; SQL query basics php input
1.htm page

Query

1. php page

$ Find = $ _ G ['GP _ find '];
$ Tt = $ find;

SQL query statement .....

How can I achieve the customer's input in input and then click query to directly jump to (123.php? F = the content entered by the customer ).

How to set the value?

------ Solution --------------------
Form action = '1970. php', METHOD = get, with $ _ GET ['form variable name.
If you do not want the browser to display the parameter value or the parameter value is greater than 2 k, METHOD = post, and use $ _ POST.
------ Solution --------------------
Http://www.baidu.com? Id = 1 & wd = "+ document. getElementById (" find "). value," _ blank"
Quotation marks cannot be used in disorder
"Http://www.baidu.com? Id = 1 & wd = "+ document. getElementById (" find "). value," _ blank"


Query

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.