trying to use a php variable inside a form without much success
its just a simple check to see if a questions on the form should be asked or not
here is what I have been trying:
<?php if ($asksex = 1): ?>
Gender <br>
<input type="radio" name="sex" value="male" checked> Male<br>
<input type="radio" name="sex" value="female"> Female
<?php else : ?>
<?php endif; ?>
<?php if ($asknews = 1): ?>
Subscribe me to your news letter
<input type="checkbox" name="sex" value="yes" checked= true>
<?php else : ?>
<?php endif; ?>
what am i doing wrong?