|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Smurf Join Date: Jan 2008
Posts: 1
![]() | Hi, I was trying to make a single text input form . Index.php would take a search query and pass it to welcome.php. The code of two files are as follows:INDEX.PHP WELCOME.PHP<body><div> Now the first Issue is with Index.php. When I enter a query and press enter Key , it goes to the welcome.php page but without any query only in MSIE. It works with mouse click. Secondly when I enter a query in welcome.php, it doesn't return any results(doesn't prints the message of query."Finding Query"), neither in FF or MSIE. Please help. |
| | |
|
| |||||||
| | #2 |
| Member Join Date: Oct 2007 Location: London UK
Posts: 144
![]() | I guess a small introduction would have been nice 1st before asking for some help ![]()
__________________ Too many signature links ... oh dear! |
| | |
| | #3 |
| Moderator Join Date: Aug 2006
Posts: 1,134
![]() ![]() ![]() ![]() ![]() | why do you have the form twice? your form is missing a critical parameter "METHED" i suggest methed "POST" Hides data $_REQUEST is an ambiguous PHP super array use $_post and $_Get where needed also you don't need to evaluate for submit being set
__________________ Webmaster Resources & Forums / Webmaster Tools & Forum / eCommerce Shopping Basket / Scene Releases |
| | |
| | #4 |
| Member Join Date: Aug 2006
Posts: 198
![]() | <body><div> <form action="welcome.php" method="post"> !nfo <input type="text" size="80" maxlength="200" name="query"><br /> <input style="margin-top:15px; padding:5px 12px 5px 12px" type="submit" value="submit" name="submit"> <input type="hidden" name="_submit_check" value="1"/> </form></div></body> In above i have added method=post On second page (welcome.php) use this on the top $query=$_POST['query']; then you can check if this value is coming by just typing echo $query; //this will print the result. |
| | |
| | #5 | |
| Moderator Join Date: Aug 2006
Posts: 1,134
![]() ![]() ![]() ![]() ![]() | Quote:
Your Welcome ![]() Perfect example on why the forum help has decreased A simple Ty for your time makes it seem worth while to post nevermind im an idiot i thought you was the original poster
__________________ Webmaster Resources & Forums / Webmaster Tools & Forum / eCommerce Shopping Basket / Scene Releases | |
| | |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| plz plz plz review. | nskyline | Website Reviews | 4 | 11-07-2007 12:27 PM |
| Plz rate it | fawad | Advertise your website | 0 | 04-04-2007 09:59 AM |
| Plz Help me | Fletcher | Search Engine Optimization (SEO) | 8 | 01-11-2007 12:43 PM |
| Opinions plz., | kittyluver | Website Reviews | 1 | 09-06-2006 04:13 PM |
| Plz read this | careerbharat | 4 | 08-15-2006 01:12 AM | |