guruk Posted November 14, 2008 Share Posted November 14, 2008 Hi is there a way to implement a complete url with own parameters in a $_GET command? like param1=hello param2=test.php?t=1&v=3&x=3 param3=thanks i know its normal not possible because of the & . i also know the solution with uriencode, but my client says thats not possible. he only could do a " or ### in the beginning and end to mark that special parameter like.. myscript.php?param1=hello¶m2="test.php?t=1&v=3&x=3"¶m3=thanks or myscript.php?param1=hello¶m2=###test.php?t=1&v=3&x=3###¶m3=thanks but anyhow.. how should I read this.. i did not found a standart solution with $_GET and Quotes so it looks i need a total own Routine to read the full parameter from $_SERVER['REQUEST_URI'] Do you have a solution for me? with standart $_GET or with a function that emulates the $_GET and works with Quotes? I would appreciate you can help thanks Chris Link to comment https://forums.phpfreaks.com/topic/132758-help-for-_get-with-a-complete-url-as-parameter/ Share on other sites More sharing options...
rhodesa Posted November 14, 2008 Share Posted November 14, 2008 you mean like this: <?php $params = array( 'param1' => 'hello', 'param2' => 'test.php?t=1&v=3&x=3', 'param3' => 'thanks', ); print 'myscript.php?'.http_build_query($params); ?> Link to comment https://forums.phpfreaks.com/topic/132758-help-for-_get-with-a-complete-url-as-parameter/#findComment-690405 Share on other sites More sharing options...
guruk Posted November 14, 2008 Author Share Posted November 14, 2008 yes USUALY would be like that but my client says he cannot give me a encoded url (like you do) so.. just with a ### in the beginning and end. tja... what should i say.. client is king... so for me looks like just a procedure that reads the $_SERVER['REQUEST_URI'] can save my day greets chris Link to comment https://forums.phpfreaks.com/topic/132758-help-for-_get-with-a-complete-url-as-parameter/#findComment-690412 Share on other sites More sharing options...
rhodesa Posted November 14, 2008 Share Posted November 14, 2008 that is silly...client should follow web standards... yeah, you should be able to parse it out yourself... Link to comment https://forums.phpfreaks.com/topic/132758-help-for-_get-with-a-complete-url-as-parameter/#findComment-690417 Share on other sites More sharing options...
guruk Posted November 14, 2008 Author Share Posted November 14, 2008 yes thats what i will try now.. just hoped someone else had a problem like that before and already a solution... anyhow.. thanks greets chris http://www.christian-albert-mueller.com Link to comment https://forums.phpfreaks.com/topic/132758-help-for-_get-with-a-complete-url-as-parameter/#findComment-690419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.