Hi Guys,
i'm using chrono engine version 2.1 and joomla 10.0.12 now
still not working (sorry..) after follow your instruction
please info me which one is wrong, with this step
#1 hack the chronocontact.php (file attached) <<< can you check the file please
#2 make new form, i put back the []'s on all names
[code]
What kind of music do you listen?(can multiple select) &lt;br /&gt;
&lt;table width=&quot;400&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;jazz&quot; /&gt;
Jazz&lt;/td&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;rock&quot; /&gt;
Rock&lt;/td&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;pop&quot; /&gt;
Pop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;Rap&quot; /&gt;
Rap&lt;/td&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;hiphop&quot; /&gt;
Hip Hop &lt;/td&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;classic&quot; /&gt;
Classical&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;instrumental&quot; /&gt;
Instrumental&lt;/td&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;Heavy Metal&quot; /&gt;
Heavy Metal &lt;/td&gt;
&lt;td&gt;&lt;input name=&quot;music[]&quot; type=&quot;checkbox&quot; value=&quot;ballad&quot; /&gt;
Ballad&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot; /&gt;
&lt;/p&gt;
[/code]
#3 put this code on submit code (before sending emails)
[code] &lt;?php
if ( is_array($_POST[music]) ) {
$_POST[music] = implode(',', $_POST[music]);
}
?&gt;
[/code]
#4 save the form
#5 create table
&gt;&gt;&gt;&gt; the colom name for the musi Guys,
i'm using chrono engine version 2.1 and joomla 10.0.12 now
still not working (sorry..) after follow your instruction
please info me which one is wrong, with this step
#1 hack the chronocontact.php (file attached) <<< can you check the file please
#2 make new form, i put back the []'s on all names
| Code: |
What kind of music do you listen?(can multiple select) <br />
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="music[]" type="checkbox" value="jazz" />
Jazz</td>
<td><input name="music[]" type="checkbox" value="rock" />
Rock</td>
<td><input name="music[]" type="checkbox" value="pop" />
Pop</td>
</tr>
<tr>
<td><input name="music[]" type="checkbox" value="Rap" />
Rap</td>
<td><input name="music[]" type="checkbox" value="hiphop" />
Hip Hop </td>
<td><input name="music[]" type="checkbox" value="classic" />
Classical</td>
</tr>
<tr>
<td><input name="music[]" type="checkbox" value="instrumental" />
Instrumental</td>
<td><input name="music[]" type="checkbox" value="Heavy Metal" />
Heavy Metal </td>
<td><input name="music[]" type="checkbox" value="ballad" />
Ballad</td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Submit" />
</p>
|
#3 put this code on submit code (before sending emails)
| Code: |
<?php
if ( is_array($_POST[music]) ) {
$_POST[music] = implode(',', $_POST[music]);
}
?>
|
#4 save the form
#5 create table
>>>> the colom name for the music music[] &lt;&lt; is it correct?
and whe><hr /><code class="php"> &lt;?php
if ( is_array($_POST[music]) ) {
$_POST[music] = implode(',', $_POST[music]);
}
?&gt;
</code><hr /></td></tr></table>
#4 save the form
#5 create table
>>>> the colom name for the music music[] << is it correct?
and when i press create table, appear windows pop up "Query was Empty SQL="
that's my last step.. so it did not create table on database.
until this step,
please info me is there something i miss or something wrong with the code (form code and chrono_hack.php)