Re: Newbie php problem



Tim Greer wrote:

You probably want to evolve that script, but for the immediate
problem, why not have a form field that's a hidden HTML tag, which is
a specific value, and the script only executes the mail function if
(for example) the field name "mailed" is "wassubmitted" or any
combination you wish to use, and only then is is submitted.

What would prevent the bot people from copying your contact form (View
Source, of course), complete with "hidden" field, and submitting it to
your action script from their own server?

IMO, a hidden field is next to useless for the purpose you described.

--
-bts
-Friends don't let friends drive Windows
.



Relevant Pages

  • Re: strip_tags works, then it doesnt in an if/else.
    ... HTML tags in a form field without actually changing anything...I was ... I left off some of the script. ... alerting to the pressence of) non-ASCII characters, non alphanumerics, ...
    (comp.lang.php)
  • Re: strip_tags works, then it doesnt in an if/else.
    ... HTML tags in a form field without actually changing anything...I was ... I left off some of the script. ... alerting to the pressence of) non-ASCII characters, non alphanumerics, ...
    (comp.lang.php)
  • Re: dollar sign and spaces from a string
    ... >> slammed for not submitting the entire script, and if they do they will be ... like there ar eproblems that can only be solved by posting here. ... be INGORED by those not wanting to help him or her, it does NOT warrant insults ...
    (comp.lang.perl.misc)
  • Re: PHP page get executed twice
    ... I am running PHP5 ISAPI on 2003 server. ... The script is a PHP page with a form. ... after submitting the form there are tworecords inserted so it looks ...
    (comp.lang.php)
  • Anyone interested: please comment on this code
    ... script is to create a string of code and it to the same directory this ... elements' data and create a hash out of the re-formatted info. ... corresponding to form field data), concatenate them with a reference to ... #detDescrip:detailed description; firstDMCLI:first part of DMCLI ...
    (perl.beginners)