I've got a suggestion form that inserts into a db table when they
submit, my jquery is located in a /js folder, while this page is in /,
and my db settings are in /includes/
If this code is verbatim, then I would say it's because your $.post()
call does not include a "submit" param, which is what sendsuggest.php
is checking for in order to process the submission.
- jason
On May 16, 7:59 pm, riscphree <riscph...@gmail.com> wrote:
> I've got a suggestion form that inserts into a db table when they
> submit, my jquery is located in a /js folder, while this page is in /,
> and my db settings are in /includes/
> If this code is verbatim, then I would say it's because your $.post()
> call does not include a "submit" param, which is what sendsuggest.php
> is checking for in order to process the submission.
> - jason
> On May 16, 7:59 pm, riscphree <riscph...@gmail.com> wrote:
> > I've got a suggestion form that inserts into a db table when they
> > submit, my jquery is located in a /js folder, while this page is in /,
> > and my db settings are in /includes/
If this code is verbatim I would suggest some kind of validation in
your php script, with the script you have now anyone could hijack your
database with an sql injection, or anything really. I suggest looking
at: stripslashes(), striptags(), preg_match(), ereg(), trim(), any
validation is better than none :}