Ho do I submit a form using POST without a page refresh. I only know how to send variables to a new page. I just want a user to select their desired shirt color and have the prices for their selected shirt be outputted without a page refresh. Is there a good jquery plugin I could use? Thanks in advance.
PHP Code:
<form method="post" >
<select name="color">
<option value="" selected>Desired Shirt Color</option>
<option value="blue">Bad Condition</option>
<option value="green">Good Condition</option>
</select><br><a href="#">Get Your Shirt Now!</a>
</form>
$shirt_color = $_POST["color"];
switch ($shirt_color){
case "blue":
$price_small = "$100";
$price_large = "$200";
break;
case "green":
$price_small = "$120";
$price_large = "$220";
break;
}
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."