aspose file tools*
The moose likes PHP and the fly likes query string in php Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "query string in php" Watch "query string in php" New topic
Author

query string in php

shilpa deshmukh-kadam
Ranch Hand

Joined: Jun 01, 2012
Posts: 38
Hi all,
I have html code as below through which I want to go to nextpage



and php code


Here else part is executing properly but flag is not working or may be problem with query string
can you help me?
Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

Your question is a little confusing. You wrote "else part is executing properly" which implies that your if test on myflag is executing properly, but then you write "but flag is not working" which implies that the if test on myflag is not executing properly.

I would try removing the "/" from the end of the href, that is not a valid parameter separator.

Oh, and you do know that when you use a link with an href that only the URL in the href is invoke? In other words, no other data is passed along, which means that there will be no studID value. If you want to send a studID value, you should use a form with a submit button.
Jared Drake
Greenhorn

Joined: Aug 26, 2012
Posts: 5

Are you sure that your get myflag is supposed to return "true" string instead of just true as a boolean. I cannot remember if this matters or not. Also, it would help to see the form that is posted to show the get variables possible values.


I am a writer for Web Programming Tutorial and Reference
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query string in php