|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unable to retain double quotes in url variable
Hi experts in here, I have a a slight problem on the below issue:
In http://www.turboscout.com I have this search box where you can enter search terms. However, If you enclose the search terms in double quotes, the search term cannot be transfered to the next page(with frames). Below are the codes: <frame src="top.php?q=<?php echo $_GET['q']; ?>#"> This problem is because when the browser reads <frame src="top.php?q="hello world#", the url is truncated in the second " (at q="). Is there a way to work around it please? Any attempt to add an escape character to <frame src="top.php?q=<?php echo $_GET['q']; ?>#"> will be useless because the browser will truncate the values after the double quotes in the variable q. i.e. if q="hello world" the following will happen: <frame src="top.php?q=/" and that's it. if you strip the slash, then this will happen: <frame src="top.php?q=" The problem still exists... |
|
#3
|
||||
|
||||
|
I put an escape character inbetween the words like and "quotes"
the forum seems to be taking it away... |
|
#4
|
|||
|
|||
|
Hi! I thanks for your inputs, I have got it to work finally with 'urlencode' in php, and also 'escape' in javascript. Really appreciate your prompt reply
![]() by the way, I would really appreciate if you can give me some comments on http://www.turboscout.com Cheerios! |
|
#5
|
||||
|
||||
|
Although this discussion is out of scope of this thread:
I don't like how turboscout keeps its toolbar at the top of the page when I'm browsing a clicked link... I'm not really searching all search engines at once, i still have to click the different engines... Firefox already implements a simple feature, and there's no hijacking adbar on the top of my searched pages... About.com has the same hijacking adbar feature... I don't like it... although theirs has the option to remove the bar... i don't see the same option on this bar. |
|
#6
|
|||
|
|||
|
Quote:
Hi, I have included minimise, maximise & close functions in the top bar. Instead of typing the same search terms in every engine, you type once now. firefox only have a few search engines. I really appreciate your suggestions, it has definitely made turboscout.com more user-friendly ![]() Cheerios! Weiliang |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Unable to retain double quotes in url variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|