ajetrumpet
12-26-2010, 08:38 PM
all,
I'm trying to figure out something on another forum I am part in, simply for learning experience. Although, this post will probably look suspicious too.
as with the same as this forum's search page, I was able to gather from the browser source that the following items were the form fields:
query[]=STRING
searchuser[]=STRING
exactname[]=BOOLEAN
starteronly[]=BOOLEAN
tag[]=STRING
forumchoice[]=
prefixchoice[]=
childforums[]=BOOLEAN
titleonly[]=BOOLEAN
showposts[]=BOOLEAN
searchdate[]=DROPDOWN LIST
beforeafter[]=DROPDOWN LIST
sortby[]=DROPDOWN LIST
sortorder[]=DROPDOWN LIST
replyless[]=BOOLEAN
replylimit[]=NUMBER
searchthreadid[]=
saveprefs[]=DROPDOWN LIST
quicksearch[]=
searchtype[]=
exclude[]=
nocache[]=
ajax[]=
userid[]=0
I think this is pretty useful, because it shows the strings and/or field names that are being used in the POST to generate the search id criteria in the subsequent query string for the database search. My question is, on this other forum I can type in a query string like this:
.com/search.php?query=ms%20%access&ajax=&exactname=0and the search page appears with "ms access" in the keywords textbox and the "exactname" checkbox unchecked.
BUT...when the form is actually submitted, I get redirected to this page:
.com/search.php?searchid=6009484and the results are displayed....AND the action behind the form submission is simply:search.php?do=process
First, I am confused about why, if I enter the search.php page's field values directly into a URL query string, I still get the search page. E.G. - if I enter:search.php?query=ms%20%accesswhy do I get the search page with the query box filled in? Does this simply indicate that the POST is redirecting to SELF? Similarly to the way:$SERVER_['PHP_SELF']works?
Secondly, I'm confused on how the 'process' action works. Someone here told me a while back that 'do' was a field in the db table, which makes sense. But what about the 'process' part? Is there some PHP function code in another field that is read or executed based on the 'do' input value?
I would expect someone to respond to my post here, as I'm simply wanting to learn a little bit about this different method of doing things with PHP, but if the answers I would get would expose the security measures used by vBulletin, then I guess I don't expect any responses.
I appreciate any understanding I can get though. thanks!
I'm trying to figure out something on another forum I am part in, simply for learning experience. Although, this post will probably look suspicious too.
as with the same as this forum's search page, I was able to gather from the browser source that the following items were the form fields:
query[]=STRING
searchuser[]=STRING
exactname[]=BOOLEAN
starteronly[]=BOOLEAN
tag[]=STRING
forumchoice[]=
prefixchoice[]=
childforums[]=BOOLEAN
titleonly[]=BOOLEAN
showposts[]=BOOLEAN
searchdate[]=DROPDOWN LIST
beforeafter[]=DROPDOWN LIST
sortby[]=DROPDOWN LIST
sortorder[]=DROPDOWN LIST
replyless[]=BOOLEAN
replylimit[]=NUMBER
searchthreadid[]=
saveprefs[]=DROPDOWN LIST
quicksearch[]=
searchtype[]=
exclude[]=
nocache[]=
ajax[]=
userid[]=0
I think this is pretty useful, because it shows the strings and/or field names that are being used in the POST to generate the search id criteria in the subsequent query string for the database search. My question is, on this other forum I can type in a query string like this:
.com/search.php?query=ms%20%access&ajax=&exactname=0and the search page appears with "ms access" in the keywords textbox and the "exactname" checkbox unchecked.
BUT...when the form is actually submitted, I get redirected to this page:
.com/search.php?searchid=6009484and the results are displayed....AND the action behind the form submission is simply:search.php?do=process
First, I am confused about why, if I enter the search.php page's field values directly into a URL query string, I still get the search page. E.G. - if I enter:search.php?query=ms%20%accesswhy do I get the search page with the query box filled in? Does this simply indicate that the POST is redirecting to SELF? Similarly to the way:$SERVER_['PHP_SELF']works?
Secondly, I'm confused on how the 'process' action works. Someone here told me a while back that 'do' was a field in the db table, which makes sense. But what about the 'process' part? Is there some PHP function code in another field that is read or executed based on the 'do' input value?
I would expect someone to respond to my post here, as I'm simply wanting to learn a little bit about this different method of doing things with PHP, but if the answers I would get would expose the security measures used by vBulletin, then I guess I don't expect any responses.
I appreciate any understanding I can get though. thanks!