So I stripped out pretty much everything and I'm just trying to get a really form manually without formIt.
Here is my form:
<form class="form-inline home1" id="home1" role="form" action="[[++site_url]][[~17]]" method="POST">
<div id="input-wrap" class="">
<div class="form-group ">
<label class="sr-only" for="">Zip Code</label>
<input type="text" class="form-control" placeholder="Zip Code" name="zip" id="zip" style="max-width: 120px;">
</div>
<div class="form-group pull-right" >
<label class="col-lg-3 sr-only control-label">Products</label>
<select class="form-control" name="product" style="width:140px;">
<option value="" selected>Product</option>
<option value="Auto">Auto</option>
<option value="Boat">Boat</option>
<option value="Commercial">Commercial</option>
<option value="Commercial Property">Commercial Property</option>
<option value="Condo">Condo</option>
<option value="Homeowners">Homeowners</option>
<option value="Life">Life</option>
<option value="Motorcycle">Motorcycle</option>
<option value="Renters">Renters</option>
<option value="Workers Compensation">Workers Compensation</option>
</select>
</div>
</div><!-- close input wrap -->
<button id="next1" class="btn btn-orange btn-block" type="submit" >Get Started</button>
</form>
I created a new resource named processForm with an id of 17. In the content section (with Toggle Editor unchecked) I placed the following code to reference my php snippet:
Finally I have a Snippet, process-step1, with an id of 11 and the following code.
<?php
$var = "Hello World";
return $var;
// if(isset($_POST['zip'])){
// $zip = mr_clean($_POST['zip']);
// return $zip;
// }
// else{
// echo "no post";
// }
Since I couldn't even get this to work, I commented out the post variables and I'm just trying to print "Hello World" to the screen by returning var.
What am I doing wrong???