Elxis CMS Forum
Extensions => Components => Topic started by: xmanhattan on February 25, 2009, 16:57:50
-
I have created and tested a contact form using php and am trying to integrate it into the contact component for use on my site.
It appears that I need a little advice as I have analyzed contact.html.php and noticed that it uses the language files for the variables such as _EMAIL_PROMPT and _CMN_EMAIL. I have created some test inputs but after submitting, the answers did not appear in the email that I received. I assume that since I am not using a language translation file, that I would have to create an if statement for the input using multiple translations of what I want as input.
To correct my problem, should I be editing contact.php or contact.class.php?
Here is an example of the coding:
<br />
<label for="website<?php echo $random; ?>"<?php echo $rtl; ?>><?php echo 'Current website:'; ?>:</label><br />
<input type="text" name="website" id="website<?php echo $random; ?>" size="30" maxlength="120" class="inputbox" value="http://" title="<?php echo 'Current website:'; ?>" />
<td><input name="check[]" type="checkbox" value="cms" id="chk07" /></td>
<td><b>CMS</b></td>
<td>Installation and setup of Content Management Programs Elxis, Joomla, Mambo, extensions, templates.</td>
<td> </td>
What instructs the component to return values to be included in the email?