John-Marc -
If I have 2 vars which display two different layouts, and I have 2 buttons to select the different layouts - do I need some sort of update event in order for the selection to display?
I have this for the vars - the only difference is the class assigned right now
PHP Code:
<?php
$var_table1 = '<table width="350" height="200" border="0" align="center" cellpadding="5" cellspacing="0" class="cardTemplate_pond" id="cardTemplate">
<tr>
<td width="204" rowspan="2" align="left" class="style4" id="companyName" style="margin-left:15px">Company Name </td>
<td width="130" align="right" class="style6" id="nameS">Name</td>
</tr>
<tr>
<td align="right" class="style9" id="titleS">Title</td>
</tr>
<tr align="left">
<td colspan="2" align="center" class="style6" id="sloganS">Slogan Here</td>
</tr>
<tr>
<td align="left" class="style6" id="address1S">Address Line 1</td>
<td align="right" class="style6" id="phoneS">Telephone</td>
</tr>
<tr>
<td align="left" class="style6" id="address2S">Address Line 2</td>
<td align="right" class="style6" id="cellS">Alternate Number</td>
</tr>
<tr>
<td align="left" class="style8" id="websiteS">Web Address</td>
<td align="right" class="style6" id="emailS">e-mail Address</td>
</tr>
<tr align="left">
<td colspan="2" align="center" class="style6" id="addInfoS">Additional Information</td>
</tr>
</table>';
$var_table2 = '<table width="350" height="200" border="0" align="center" cellpadding="5" cellspacing="0" class="cardTemplate_eagle" id="cardTemplate">
<tr>
<td width="204" rowspan="2" align="left" class="style4" id="companyName" style="margin-left:15px">Company Name </td>
<td width="130" align="right" class="style6" id="nameS">Name</td>
</tr>
<tr>
<td align="right" class="style9" id="titleS">Title</td>
</tr>
<tr align="left">
<td colspan="2" align="center" class="style6" id="sloganS">Slogan Here</td>
</tr>
<tr>
<td align="left" class="style6" id="address1S">Address Line 1</td>
<td align="right" class="style6" id="phoneS">Telephone</td>
</tr>
<tr>
<td align="left" class="style6" id="address2S">Address Line 2</td>
<td align="right" class="style6" id="cellS">Alternate Number</td>
</tr>
<tr>
<td align="left" class="style8" id="websiteS">Web Address</td>
<td align="right" class="style6" id="emailS">e-mail Address</td>
</tr>
<tr align="left">
<td colspan="2" align="center" class="style6" id="addInfoS">Additional Information</td>
</tr>
</table>';
?>
Not sure if this is even remotely correct, but was trying it anyway
HTML Code:
<input name="layout" type="radio" value="<?php ($_POST[1]); ?>" />
I can get both layouts to echo, just can't get one to display on selection... I know you're not surprised though. It seems to me that I would have to have an update button or an onClick event to display the correct layout... or am I going in the wrong direction again?