Jump to content

Email Form From Within Content Item


BigDutch#2

Recommended Posts

Alejandro, Using XAJAX in jReviews 1.0 you helped from this forum make a small form that would send an email, i need to replicate this in detail.thtml, so far i copied the old code in and made small changes to bring in the values needed :

 

<?php
$contenttitle = $listing['Listing']['title'];
$contentemail = $CustomFields->field('jr_email',$listing)
?>

<form name="enquiryForm" id="enquiryForm">
   <table border="0" width="100%">
<tr><td width="14%">Your Name :</td><td width="85%"><input type="text" name="name" size="25"></tr></td>
<tr><td width="14%">Your Email :</td><td width="85%"><input type="text" name="email" size="25"> </tr></td>
     	<tr><td colspan="2"><br>Message To <?php echo $contenttitle;?> :<br> <textarea cols="40" rows="4" name="message" size="40"></textarea>
        <input type="hidden" name="recipient" value="<?php echo $contentemail;?>" /><br><br>
  <input type="button" value="submit" onclick="??????XXX???X">
   </td>
     </tr>
   </table>
</form>

 

Now in the previous version onclick of the submit button would run a script file so is it the same intention here to run an external script file ?

Link to comment
  • 1 month later...
  • 2 weeks later...
×
×
  • Create New...