Help needed with script

Discussion in 'PHP' started by BioSpherical, Jul 13, 2008.

  1. #1
    Hi DPers,

    I need some help. I was recently alerted to a problem by a customer with my script.

    To see the issue:
    1) Click here
    2) Login to the admin using 'demo' as the username and password
    3) Try editing terms, adding links, editing the privacy policy or FAQs. You'll see a message appears - "Please ensure you have filled in all fields."

    I was wondering if anyone could shed any light on the matter. I didn't code the script as I don't know a lot of PHP, so don't really know what the problem could be. It could be something to do with server configuration or settings, but bear in mind this issue appears on my demo site, another seperate demo site (on a different server), and a customer's site. So my gut feeling is its something to do with the code.

    If anyone thinks they can fix it, I might be willing to pay a little ($5-$10) for the fix. Please PM me if this is the case.

    Thanks in advance!
     
    BioSpherical, Jul 13, 2008 IP
  2. BioSpherical

    BioSpherical Active Member

    Messages:
    874
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #2
    I have a feeling the error might be something to do with the SQL code in the file (in this case, addlinks.php):
    If anyone can spot any obvious errors etc in that, let me know.
     
    BioSpherical, Jul 13, 2008 IP
  3. clarky_y2k3

    clarky_y2k3 Well-Known Member

    Messages:
    114
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Just to rule out register_globals related issues, try replacing the following:
    
    } elseif ($_GET['new'] == "true" && ($submit) && ($description) && ($url) ) {
    
    PHP:
    With this:
    
    } elseif ($_GET['new'] == "true" && isset($_POST['submit']) && isset($_POST['description']) && isset($_POST['url']) ) {
    
    PHP:
     
    clarky_y2k3, Jul 13, 2008 IP
  4. BioSpherical

    BioSpherical Active Member

    Messages:
    874
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #4
    It worked! :D:D

    I am so grateful! If you want $5 as a thank you, PM me your PayPal email and I'll send it over.

    Either way, once again, thank you!
     
    BioSpherical, Jul 13, 2008 IP
  5. clarky_y2k3

    clarky_y2k3 Well-Known Member

    Messages:
    114
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    #5
    It's alright, I don't want anything. Thanks, though :).
     
    clarky_y2k3, Jul 13, 2008 IP