So I've created my first wordpress widget that really is nothing more than a form that request a zip code. When that form is submitted to specified page I would like to append the zip code to the url as such: www.mydomain.com/locations?address=VALUE so that the store locator plugin I'm using will filter the list according to the entered zip code... The is my code thus far, but I'm having a hard appending the value to the input field to the URL.
echo '<div id="subpages-widget-2" class="widget widget_subpages custom-formatting">';
echo '<h3 class="widgettitle">Find Your Clinic</h3>';
echo '<p>Enter you zip code below to find the closest clinics near you.</p>';
echo '<form class="searchform" method="post" action="http://www.nuvdev.com.php53-23.ord1-1.websitetestlink.com/weightlossclinics/locations-detail-list?address=$qsearch">';
echo '<input id="qsearch" type="text" placeholder="Enter zip code...">';
echo '<input id="submit" type="submit" value="Search">';
I'm sure this is a simple syntax issue, anyways thanks in advance.