Hi! I found a php contact form on Hotscripts.com.
Can someone please telll me how to incorporate this into the page?
<form action="addmail.inc.php" method="post">
<table>
<tr>
<td>Name : </td>
<td><input name="name" type="text" /></td>
<td> *</td>
</tr>
<tr>
<td>Email : </td>
<td><input name="email" type="text" value="@." /></td>
<td> *</td>
</tr>
<tr>
<td>Message : </td>
<td><textarea cols="20" name="textarea" rows="5"><?php print("Hello webmaster,\n\n"); /* your name */ ?></textarea></td>
<td> *</td>
</tr>
<tr>
<td></td>
<td><input name="submit3" type="submit" value="Send" />
<input name="reset" type="reset" value="Reset" /></td>
<td></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">* = required field.</td>
</tr>
</table>
</form>
Here is my contact.php:
<?php
$templates_used = 'home,category_bit,whos_online,thumbnail_bit,member,comment_bit';
$main_template = 'contact';
define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
"msg" => $msg,
"clickstream" => $clickstream,
"lang_category" => $lang['category'],
"lang_added_by" => $lang['added_by'],
"lang_description" => $lang['description'],
"lang_keywords" => $lang['keywords'],
"lang_date" => $lang['date'],
"lang_hits" => $lang['hits'],
"lang_downloads" => $lang['downloads'],
"lang_rating" => $lang['rating'],
"lang_votes" => $lang['votes'],
"lang_author" => $lang['author'],
"lang_comment" => $lang['comment'],
"lang_prev_image" => $lang['prev_image'],
"lang_next_image" => $lang['next_image'],
"lang_file_size" => $lang['file_size']
));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>
Can someone please help me?
whenever I input the form into the contact.html. I get the following error.
Parse error: parse error, unexpected '<' in /home/virtual/site23/fst/var/www/html/4images/includes/template.php(133) : eval()'d code on line 459
It is weird because the contact.html was a direct copy of the details.html without all of the photos references...so basically, it was a shell of the details.html.
Any help would be appreciated!