I have this code
- Code: Select all
<?php
$submit = $_POST['submit'];
if (isset($submit)) {
mysql_query("INSERT INTO eflyers (name, date, html_source, subject_line, sent_date, resort)
VALUES ('$_POST[eflyer-name]','$_POST[eflyer-date]','$_POST[html-source]','$_POST[subject-line]','$_POST[sent-date]','$_POST[resort]')"); ?>
<div id="success">
<p>The e-flyer has been correctly added to the database.</p>
</div>
<?php } ?>
All I have in return is:
- Code: Select all
Parse error: syntax error, unexpected '-', expecting ']' in ... on line 21
I don't know what to do!


