lmh99
asked on
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.
:>)
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.
:>)
<lurking>
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?>>
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?>>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
<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.
ASKER
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.
:>)
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.
:>)
I don't understand your problem ?
Do you have examples ?