1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

Can I get the code to die()?

Discussion in 'Java Script/AJAX' started by edmond, Sep 1, 2007.

Thread Status:
Not open for further replies.
  1. edmond

    edmond New Member

    Joined:
    Aug 31, 2007
    Messages:
    85
    Likes Received:
    3
    Trophy Points:
    0
    As I do not use too much javascript I was wondering how one might go about doing a confirmation box to help eliminate duplicates. For example:
    I have a bill entered into the db. I can check for a duplicate before adding a duplicate record. Right now the confirmation comes up but I am not sure how to get javascript to return to the page of code and implement further PHP.
    Are vars in javascript accessible in PHP? Can I get the code to die()?

    Thanks in Advance
    Loading...
  2. morris

    morris New Member

    Joined:
    Aug 31, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    two ways to approach this:

    1. use ajax to detect the duplicate and then pop up a js confirm box

    2. process the item as normal, run your normal detection and then present both items if a duplicate is suspected and let the user select one with a radio button
    once the approach is decided a strategy can be developed in how to show the info for a confirmation
Thread Status:
Not open for further replies.

Share This Page