$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>How To Change Url Doing Some Changes in Search Form|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How To Change Url Doing Some Changes in Search Form

matteradmin9PV0评论

How can url show like i want or prefix text in search query

form class="search" action="/search">


input type="hidden" name="type" value="product" />

input type="text" placeholder="Search Your Model Here.." name="q" value="{{ search.terms | escape }} iphone 6 photo cover " size="45" />
input type="submit" value="Search" value="product" />
input type="hidden" name="title" value="Photo" />
</form>

now i am getting this url

;q=+iphone+6&title=Photo

this is the code i place there i even use tag its not searching in tag i just want to add one word after search query

like ;q=+iphone+6=Photo . just want to add =photo after search query how can i change something in this code for that please help

How can url show like i want or prefix text in search query

form class="search" action="/search">


input type="hidden" name="type" value="product" />

input type="text" placeholder="Search Your Model Here.." name="q" value="{{ search.terms | escape }} iphone 6 photo cover " size="45" />
input type="submit" value="Search" value="product" />
input type="hidden" name="title" value="Photo" />
</form>

now i am getting this url

https://paybydaddy/search?type=product&q=+iphone+6&title=Photo

this is the code i place there i even use tag its not searching in tag i just want to add one word after search query

like https://paybydaddy/search?type=product&q=+iphone+6=Photo . just want to add =photo after search query how can i change something in this code for that please help

Share Improve this question edited Feb 2, 2019 at 3:11 Jacob Peattie 44.3k10 gold badges50 silver badges64 bronze badges asked Feb 2, 2019 at 2:54 keshav sharmakeshav sharma 1 1
  • Some One Can Solve This Problem Please?? – keshav sharma Commented Feb 2, 2019 at 6:48
Add a comment  | 

1 Answer 1

Reset to default 1

The character = in a URL is used to separate a name from a value (this is how the query arguments are defined) and it cannot be used as such in your example unless you URL encode it.

Post a comment

comment list (0)

  1. No comments so far