<input type="checkbox" name="vehicle" value="yes">
If the user checks this, the php variable $vehicle_check should hold the value ="RA" otherwise, the value will hold the default "R".
Can I do this without javascript?
I tried:
if(isset($_POST['submitquotes'])){
$check = $_POST['vehicle'];
if ($check == 'yes'){
$vehicle_check = 'RA';
}
else{
$vehicle_check = 'R';
}
}
This doesn't seem to work.
$check?submitquotes? Show us the HTML.