Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
A html doc contains following codes:
XML
<html>
  <form action="http://www.educationboardresults.gov.bd/result.php" method="post" >
  <tr align="center">
        <td width="60%"> <select name="board" class="textfield06">
                      <option value="Dhaka">--Select Board--</option>
             <option selected="selected" value="dhaka">Dhaka</option>
          </td>
       </tr>
         <tr align="center">
         <td>
          <input name="roll" class="textfield06" maxlength="6" type="text" value=123486>
         </td>
       </tr>
  <tr align="center">
         <td>
           <input name="Submit" class="submit" value=" View Result" type="submit">
         </td>
       </tr>
 </form>
</html>


If I click on View Result it shows a valid result.
But if I click the below link it doesn't return a result. I did that before. Why it is not working?
http://www.educationboardresults.gov.bd/result.php?board=dhaka&roll=123456[^]
Returns an error: "Roll number doesn't match or wrong roll number"

If you want to see my problem you can go:
http://www.educationboardresults.gov.bd[^]
Posted
Updated 17-Jun-11 7:24am
v2
Comments
Monjurul Habib 17-Jun-11 13:54pm    
why tagged under ASP.NET ?
Аslam Iqbal 18-Jun-11 1:58am    
Its basic concept for any web developer. not only for php developer. This is why I add the tag ASP.NET.
Monjurul Habib 18-Jun-11 5:29am    
ok, then why you titled "php query string problem" instead of "query string problem" ??? :)
Manfred Rudolf Bihy 17-Jun-11 14:29pm    
Parwej Ahamed wrote:

Dear it could be better if you move your question under PHP forum section then you will more response.

http://www.codeproject.com/Forums/1213656/PHP.aspx[^]

Returns an error: "Roll number doesn't match or wrong roll number"
It's not error dude, it's customized message by application based on criteria. Actually that roll number not exists in the database that's why you are getting that message.

I did that before. Why it is not working?
Here before the details might be there for the appropriate roll number but not now.
Either the roll number details has been deleted or disabled.
Check the database if any details exists for that particular number.
 
Share this answer
 
Comments
Аslam Iqbal 18-Jun-11 1:56am    
If I select board=dhaka and roll=123456 and click on view result it returns the correct result. That means roll is valid. try it from http://www.educationboardresults.gov.bd
thatraja 18-Jun-11 2:14am    
OK, you right. So the problem in the code. They are displaying the results not by querystring, they doing by other thing such as session or something.
Аslam Iqbal 18-Jun-11 4:10am    
yeah you are very close to my problem. thank you. but it doesn't solve my problem. bcoz there is no any session.
thatraja 18-Jun-11 7:07am    
Actually we need to take a look at your code so that we can spot the issue
i think you should use "GET" for form Methad
 
Share this answer
 
i think you should use "GET" for form methoMethaddmethod
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900