php - Submit form to a directory (example.com/product/), form action=""? -


i've tried <form action="/product/" method="get">, doesn't work.

usually have php file such search.php in same directory such <form action="search.php", i'm implementing different kind of search needs send request same place.

what i'm getting: (e.g. if i'm on page example.com/product/foo)

example.com/product/foo?id={query};

what want: example.com/product/?id={query};

update: upon instpecting elements, seems it's action=" product ". something's slashes. checked source code, , seems fine.

got work after changing double quotes single quotes... <form action="/product/" method="get">.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -