-----------------------------Hi to all and sundry. I''m Atif a newbie to this forumI''ve a question regarding php. if anyone could answer it i would be hononured.thanx in advance.---------------------------------------------------------------I have a table in MYSQL named product.Columns in product are named as pcode(product code ) and purl (product url).i have to generate a search code such that,if i enter the pcode in the search text for the corresponding purl,the webpage corresponding to that url gets displayed as i click the submitbutton.I tried out my best ,in the end i was able to display the url only and not the web page corresponding to that url.here is the code i tried:.-------------------------------------------------------------------------Productmanage.php----------------------------- 展开 | 选择 | Wrap | 行号推荐答案您好TechnoAtif, 我认为您正朝着正确的方向前进,但下次请使用代码标签显示你的鳕鱼e - 它使阅读更容易。 回到问题所在。 我认为您需要做的是在获得位置后设置标题。这个过程将是: 1)一个页面,其中包含表格,供用户输入产品代码,然后点击搜索。 2)seacrh(提交)按钮将转到基于Hi TechnoAtif,I think you are heading along the right lines, though next time please use the code tags to display your code - it makes it easier to read.Back to the problem.I think what you need to do is set the header once you have the location. The process would be:1) A page with the form on for the user to enter to product code and then click search.2) The seacrh (submit) button would go to a php page that queries the database based on the _POST []数据查询数据库的php页面 3)如果记录为foudn,则设置标题 [php] header(" Location:_POST[] data3) If the record is foudn the set the header[php]header("Location: URL"); //其中URL"); // where 这篇关于单击提交按钮在php中显示网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!