php - how to get in url with value.html -


this form submits url that

http://www.website.com/page/search.php?search=demo&submit=search

 <form action="search.php?search=" method="get" id="search-form">       <input id="search-text" name="search" type="text" maxlength="30" placeholder="type keyword"/>       <button type="submit" name="submit" value="search" id="search-button">search</button> </form> 

where want post form that:

http://www.website.com/page/search/demo.html

how can this? know small thing me..

thanks

i unclear question is.

if mean want able process input client-side, not possible unless override behavior javascript. example jquery

$( "search-form" ).on( "submit", function( event ) {     // stuff here form data     event.preventdefault(); }); 

if mean don't want .php show , want hide underlying server technology, can use apache's mod_rewrite. don't want in case because .html implies it's page visit (get, not post) rather script submit variables to.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -