echo code which contains a function call
Posted: Tue Feb 26, 2008 1:28 pm
Hi all, can anyone please tell me if it is possible to call a function from code that i am echo'ing out?
here is what i am echo'ing.
notice the function "optionSubjects()"
thanks in advance.
here is what i am echo'ing.
Code: Select all
<form action="contact-send/" method="post" enctype="multipart/form-data" name="contactForm" target="_top">
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td colspan="4">Please complete the form below to contact us, a company representative will contact you in return shortly.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="right">Title:</td>
<td><span id="spryselect1">
<select name="title" id="title">
<option value="Please Select">Please Select</option>
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Miss">Miss</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
<option value="Sir">Sir</option>
<option value="Jr">Jr</option>
</select>
<span class="selectInvalidMsg">Required.</span> <span class="selectRequiredMsg">Please select an item.</span></span></td>
<td align="right">Firstname:</td>
<td><span id="sprytextfield1">
<input type="text" name="firstname" id="firstname">
<span class="textfieldRequiredMsg">Required.</span></span></td>
</tr>
<tr>
<td align="right">Surname:</td>
<td><span id="sprytextfield2">
<input type="text" name="surname" id="surname">
<span class="textfieldRequiredMsg">Required.</span></span></td>
<td align="right">Email:</td>
<td><span id="sprytextfield3">
<input type="text" name="email" id="email">
<span class="textfieldRequiredMsg">Required.</span><span class="textfieldInvalidFormatMsg">Invalid Email.</span></span></td>
</tr>
<tr>
<td align="right">Subject:</td>
<td><span id="spryselect2">
<select name="subject" id="subject">
<option value="Please Select">Please Select</option>
'.optionSubjects();.'
</select>
<span class="selectInvalidMsg">Required.</span> <span class="selectRequiredMsg">Please select an item.</span></span></td>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td align="right" valign="top">Message:</td>
<td colspan="3"><span id="sprytextarea1">
<textarea name="message" id="message" cols="45" rows="5"></textarea>
<span class="textareaRequiredMsg">Required.</span></span></td>
</tr>
<tr>
<td align="right"> </td>
<td><input type="submit" name="button" id="button" value="Send"></td>
<td align="right"> </td>
<td> </td>
</tr>
</table>
</form>thanks in advance.