Re: query string passing woes........ help... please....




<rcoan@xxxxxxxxxxxxxxxxxx> wrote in message
news:1172693461.912511.197140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| On Feb 28, 2:53 pm, "Steve" <no....@xxxxxxxxxxx> wrote:
| > "J.O. Aho" <u...@xxxxxxxxxxx> wrote in message
| >
| > news:54m4nlF20pf52U1@xxxxxxxxxxxxxxxxxxxxx| Steve wrote:
| > | > <r...@xxxxxxxxxxxxxxxxxx> wrote in message
| >
| > |
| > | > | project abandoned, I guess b/c of spammers and people with skills
like
| > | > | steve you just can't setup an easy email form anymore. And steve
you
| > | > | did open my eyes to what could happen, thanks, but you didn't
really
| > | > | offer any help other than saying that my validation could be FAR
more
| > | > | graceful. It validated fine for me. And about spreading my sites
ass
| > | > | wide open. I wouldn't want that to happen.
| > | >
| > | > project abandoned?!!! do you always give up if something is too
| > complicated
| > | > or may take some work to understand and then address?
| > | >
| > | > yes, it is painfully easy to set up an email form. easy, though
being a
| > | > wholly relative term, enough to be handled in a few lines of
| > code...which i
| > | > DID provide, if you'd check the thread again!
| > |
| > | He did expect a fully finished code, but we didn't provide one ;)
| >
| > ;-)
|
|
|
| man you guys are killin me. I didn't expect a fully finished code but
| don't get mad at me when you respond and I have no clue what it was
| that you were trying to tell me.
|
| Steve, the ok.htm, error.htm and er.htm pages are not even built yet.
| I wanted to at least get the code working first before I built those
| pages. No I won't give the user a chance to review their info. Right
| now I'm just looking at the url to see if it went through or not.
| the difference in the er.htm and the error.htm are just so I could see
| where in the code it was getting kicked back.
|
| Listen guys, I'm a total newbie at php. This is the first script of
| php I've ever written (as I'm sure it shows) so you responding by:
| $emailInput = array($to, $from, $cc, $bcc, $subject, $message);
| $injections = array('to', 'from', 'cc', 'bcc');
| foreach ($emailInput as $input)
| {
| foreach ($injections as $injection)
| {
| $input = preg_replace("/n?" . $injection . "\s*?:.*?\n/i", '',
| $input);
| }
|
| }
|
| just confuses the hell out of me.

RTFM !!!


.



Relevant Pages

  • Re: [PHP] foreach() using current() strange beahvior
    ... But as said, that is an internal PHP behavior that, in my opinion, should be ... foreach { ... documentation should warn users about such behaviors. ... internal array manipulation and probing functions. ...
    (php.general)
  • Re: Form helper issues "Invalid argument supplied for foreach()"
    ... foreach() in form_helpers.php on line 80". ... <?php input_select('main_dish', $defaults, ... It turns out that the problem lies with the array of default values ... so display ...
    (comp.lang.php)
  • Re: MySQL -> PHP -> MS Excel?
    ... What's available in PHP to help me with writing the MS-Excel file? ... I have an excel class that I downloaded from somewhere and modified to my own tastes. ... it asks the user whether they want to open or save the Excel file. ... foreach { ...
    (comp.lang.php)
  • Re: PHP and MySQL issue
    ... following PHP code to work on my website. ... // if multiple choices are permitted, ... foreach { ... so display ...
    (alt.php)
  • Re: PHP Mailto:
    ... foreach { ... have to create an array but I can't quite figure it out. ... I'm trying to create a PHP script that will parse my html page and send ...
    (php.general)