How do i set the variable that the $_GET
function will be able to use, w/o submitting a form with action = GET
?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
You can create a link , having get variable in href.
You can use GET variables in the
action
parameter of yourform
element. Example:This will give you
foo
as a GET variable andquu
as a POST variable.I know this is an old thread, but I wanted to post my 2 cents...
Using Javascript you can achieve this without using $_POST, and thus avoid reloading the page..