Should Be Simple And Quick - But I Just Cant Do It
Posted: Thu Feb 14, 2008 7:11 am
My question should be simple - and I consider myself as an average programmer, and have done quite a few things with php. I have spent 7 hours looking for this on forums, but just can not see how to do it. I want to simply use the url http://www.mysite.com?password=abc&name=paul&age=25 etc. - something to do with http request or something. I know if I type it in the url it works, I also know I can send a form and pick it up with php. I can even do it myself by POSTing the form and using php to pick it all up using POST or GET and this is no problem. Everything is great except for this one thing. What I need to know is what command will ensure nobody ever sees certain parts of this http request thing. Ie password=abc needs to never be seen - as would cause security problems. I know using POST will hide from the url, but if I did in a html form, you could view source and it can all be seen before sending. Ideally you will tell me to simply POST form to a php script and php script will tag on certain extra things to the end. (ie so it is secure)
Or even better something like
<?php
HTTP POST 'http://www.url.com?a=password';
?>
would simply open http://www.url.com with the password thing as though it was hidden and because in php would not show in the view source. I could then add variables together and use
<?php
HTTP POST $variable;
?>
how easy would that be!
My php would be great, anybody could do it! But I'm sure it wont be this simple, never normally is. It would simply do the job of the javascript location.href but nobody would ever see the ?a=password.
Please answer as basic as possible. A reply like "simple use the http:request command" would go over my head - ideally I would appreciate a working few lines of code. I'm not being lazy, I have looked everywhere and got so many answers, they just dont work.
Thanks.
Or even better something like
<?php
HTTP POST 'http://www.url.com?a=password';
?>
would simply open http://www.url.com with the password thing as though it was hidden and because in php would not show in the view source. I could then add variables together and use
<?php
HTTP POST $variable;
?>
how easy would that be!
My php would be great, anybody could do it! But I'm sure it wont be this simple, never normally is. It would simply do the job of the javascript location.href but nobody would ever see the ?a=password.
Please answer as basic as possible. A reply like "simple use the http:request command" would go over my head - ideally I would appreciate a working few lines of code. I'm not being lazy, I have looked everywhere and got so many answers, they just dont work.
Thanks.