How to upload the value of an option in the list to the next php interface

Source: Internet
Author: User
How to pass the option value in a list to if ($ roomID! = Null) {$ result = mysql_query ("SELECT & nbsp; roomID, roomtype, roomsize & nbsp; FROM & nbsp; room & nbsp; WHERE & nbsp; roomID & nbsp; NOT & nbsp; how to pass the option value in a list to the next php interface
If ($ roomID! = Null)
{
$ Result = mysql_query ("SELECT roomID, roomtype, roomsize FROM room WHERE roomID not in (SELECT roomID FROM bookingroom WHERE bookingdate = '$ bookingdate' AND bookingtime = '$ bookingtime ') AND roomID = '$ roomid '");
$ Num_rows = mysql_num_rows ($ result );
If ($ num_rows = 0 ){
Echo" Sorry, No result found. Please search again.

";
}
Else {

While ($ row = mysql_fetch_array ($ result ))
{
Echo"";
Echo"". $ Row ['roomid']."";
Echo"". $ Row ['hosttype']."";
Echo"". $ Row ['roomsize']."";
Echo" ";
Echo"";
}
}
}
How can I upload the data selected on my webpage to insert_data.php? PHP MySQL search
------ Solution --------------------

echo " ";

Add the ID parameter after the file name. the parameter value is the ID of the corresponding row data.
------ Solution --------------------
Try the get method
------ Solution --------------------
You can use js to obtain the attributes of each row. you can locate each row by searching for table tr td, and then pass the value through the url.
------ Solution --------------------
Store cookies during js onSubmit
On the other side of php, you can get it.

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.