Hide data from HTML Source

Dear PHPs!

This is novice in CGI programming.
On my home pages, user can search members that match with his queries.

There is no problem, except I don't want to show "User ID" to user.

How can I do this?
How can I hide "User ID" in HTML source?
Is it possible?

And one more,
Can I hide a record field from query result?
(Ex. Name | Age | Height | Weight | ...
I want to hide age field from query result. But it is necessary to execute other program. So, I have to query it)

Thanks in adavance.
:>)
lmh99Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

us111Commented:
Where's homepage ?
I don't understand your problem ?
Do you have examples ?
0
gravityCommented:
<lurking>
0
gravityCommented:
I'm not sure quite what you mean... are you talking about not showing the infomation in the url e.g. http://www.mywebpage.com/index.html?user=test&password=test2 
If so, then you can hide variables by using forms and the hidden tag...
<INPUT TYPE=hidden NAME="name of my variable" VALUE=<?echo $myvariable?>>
0
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

hagurCommented:
try this

<?
  function getindex($str,$index)
    {
      $lastsep = 0;
      $nextsep = 0;
      $fcount = 0;
      WHILE($fcount < $index)
       {
         $lastsep = $nextsep;
         $nextsep = strpos($str,'|',$lastsep + 1);
         $fcount++;
       }
       if ($index == 1)
         $lastsep--;
       return substr($str,$lastsep + 1,$nextsep - $lastsep - 1);
    }
  $query = "Name|Age|Height|Weight|";

  echo getindex($query,1) . "|";
  echo getindex($query,3) . "|";
  echo getindex($query,4) . "|";
?>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cable4096Commented:
If you mean HTML forms, use the "hidden" input type:

<input type="hidden" name="User_ID" value="<? Print(sUser_ID); ?>">

That way when the program passes the form, the user will not see the input of type hidden, but your program that reads the form will see it.

Substitute whatever you are using to get the User ID for sUser_ID above. You didn't provide any code, so I am guessing. If you provided some code, we could get a better idea on how to answer this.
0
lmh99Author Commented:
Thanks!

When user send query from web browser to server, they can get result of query.
But, if I want to hide one field from result(even though in page source), how can I do this?

Thanks in advance again.
:>)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.