Hi, i'm very new to php and html but am profficient at using VBA (Visual Basic for Applications, Microsoft's version of
VB), when working with templates for installing mods you often see that you need an IF condition to perform your action, in
VB(A) you start with
IF...your condition...Then....your action...End If in php you see it in this fashion <If condition.... can you help me understand how this works better? i have the code below which shows an agreement notice box with radio buttons, if the user selects accept all well and good however if they click decline i get the decline message in the agreement box along with the agreement and radio buttons when all i want to show is the decline (ll_decline).
HTML Code:
<form action="$ldm_accept_script.php" method="post">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
$ldm_accept_hidden_vars
<table width="100%">
<tr>
<td> </td>
</tr>
<tr>
<td align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="60%" align="center">
<tr>
<td class="alt1" align="center">
<if condition="$ldm_accept<0">
<span class="highlight">$vbphrase[ll_agreement_declined]</span>
</if>
<br /><br />
$vbphrase[ll_agreement]
<br /><br />
<input type="radio" name="ldm_accept_form" value="1" /> $vbphrase[ll_accept]
<input type="radio" name="ldm_accept_form" value="-1" checked="checked"/> $vbphrase[ll_decline]
<br /><br />
<input type="submit" class="button" name="submit" value="$vbphrase[ll_go]" />
<br /><br />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>