Jump to content

very interesting


anand.arjunan

Recommended Posts

Hi all,please see the coding how to pass the variables one page to another page if($_REQUEST['s_photo_gallery'] == '1') {?> <? $qry="select * from register where ".$search_q."";?> <script language="javascript">window.location.href="search_profile.php"</script> <? }?>in the red color query bulid in current page this query how to post search_profile.php in this page except search_profile.php?qry=<?$qry ?> if i have put this means the full query is visible to the browser

Link to comment
Share on other sites

Could you post to the php page using a form?

<form id="SearchForm" method="POST" action="search_profile.php">  <input type="hidden" id="qry" name="qry" /></form>

If you use javascript to populate the hidden input and to then submit the form, the "qry" parameter would be POSTed to the PHP page and the visitor wouldn't see it in the address bar as a query string.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...