I have a search box where the function is defined as follows:
if(isset($_POST['search']))
{
$orgname= $_POST['search'];
......
}
POST search is carried out through the form. I was wondering if there is a way to make this function accept get through a link? For example, if I use the link as follows: mysite/page?search=valuecan I use $orgname=$_GET['search']functions to run without submitting the form? So there will be two methods for loading data from a function, one of which is submitting the form, and the other is by reference, as I mentioned above? Is it possible? I try to do this because I have another tab on this page where I have an update button where the user can submit the form after making changes to the form data. But after submitting the form, the update function works, but the page reloads and shows a blank form. I want to show updated data when this form is submitted.
source
share