I need to input an if statement into a hidden form field to create a value based on another value contained in the query string:
Here's what I'm trying to do:
!!!
<input type="hidden" name="wsrc" value="<?php if( $HTTP_GET_VARS['src'] == '' ){ ?>MFR-AS-AVC<?php } else ( $HTTP_GET_VARS['src'] == "freecatalog"){ ?>RZK-EB-MFA<?php } else { echo $HTTP_GET_VARS['src']; } ?>">
Doesn't work....
Here's what it looked like before adding a second else:
<input type="hidden" name="wsrc" value="<?php if( $HTTP_GET_VARS['src'] == '' ){ ?>MFR-AS-AVC<?php } else { echo $HTTP_GET_VARS['src']; } ?>">
This one works fine.
How would the structure go if I needed to add additional if's?
I need help ASAP!!