You wouldn't be able to use mcrypt anyway - this sounds like something the client would do.
What exactly is this data you're trying to hide (related: why can't you use a form)? Is it something being sent from the server to the client for the client to send back to the server? In that case have a look at PHP's [man]session[/man] functions.
Is it something that the client is getting from the user to send to the server? There may be a Javascript solution, involving having Javascript set cookies with the data; but your description of the problem is too vague and I'm not a Javascript guru, so I don't know if that's going to work.