Search results

  1. D

    Is it good practice in PHP to have loads of IF; if Else statements ?

    For example: If ($day = "fri") echo "Today is friday"; else if ($day ="mon") echo "today is monday"; else if ($day ="tues") echo "today is Tuesday" etc etc for the rest of the week... Thanks for all help =] Above program is just an example to explain what it is im asking.
  2. D

    Php GET problem, Please assist?

    When i use the form in my php script called sticky.php , and enter data, the URL becomes " /<?firstname=John&lastname=Smith&wines[]=shiraz&wines[]=merlot&button=Submit+Name " , which doesnt function and shows an error 403 [access forbidden ] . But if I change the '<' to sticky.php , it...
  3. D

    Can anyone tell me whats wrong with this PHP ?

    <?php if (isset($_REWUEST['button'])) { $error = validate_form(); if ($error) { display_form_page ($error); } else { display_output_page(); } } else { display_form_page(''); } ?> <?php function display_form_page($error) { $self = $_SERVER['PHP_SELF']; $first_name = isset($_REQEST['firstname'])...
  4. D

    POST data from my site to another form on different website using PHP?

    I understand how to use PHP to post data from an html form to a php file where it can be, ie , sent to a specific email address. But how can I post data from a form on my site to a form on ANOTHER website where it can be handled there ? Thanks for your time, Dave Cheers for your response...
  5. D

    Can Bots tell the answer to questions in a PHP form ?

    I want to have a simple question in my PHP form that sends mail to my inbox but I do not want to be spammed out of it. I was just wondering, If i put up a text field and say, input the answer of 1 + 1 into the textfield and use that as a way of blocking spambots, will that work ? Will spambots...
Back
Top