Announcement

Collapse
No announcement yet.

Generate serial from HardSerial and email it !!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generate serial from HardSerial and email it !!

    - am trying to complete my own project for online marketing E-learning application
    - the plan is:
    - client download the (AMS EXE file)
    - client fill the form (name, ...etc)
    - hard serial input generate automatic by dll file and invisible for the client
    - client email the form (with hard serial input)
    - I make payment with a company phone credit card numbers (for reasons)
    - I will generate serials and send them by email (manually)
    - if the equation of the serial match with equation in exe file (based on HDserial) then application WORK FOR ONE COMPUTER ONLY.


    * my problem is: how (simple and effective way) to send inputs in the image to my email

    - I used mail.php >>> it send empty message.
    - I used (send email) in AMS window .. didn't work
    - I used html code in AMS code.. didn't work






    The code is:

    -- clear error variable
    error = 0;


    -- Get values from input fields
    hardse = Input.GetText("Input2");
    name = Input.GetText("Input22");
    country = Input.GetText("Input333");
    town = Input.GetText("Input4");
    email = Input.GetText("Input5");
    mobile = Input.GetText("Input6");
    zaincard = Input.GetText("Input7");

    -- check for empty fields and deliver errors if needed
    if String.Length(hardse) < 1 then
    Dialog.Message("Error", "Please enter your name and re-submit. Thank you.");
    error = 1;
    end
    if String.Length(country) < 1 then
    Dialog.Message("Error", "Please enter your country and re-submit. Thank you.");
    error = 1;
    end
    if String.Length(town) < 1 then
    Dialog.Message("Error", "Please enter your town and re-submit. Thank you.");
    error = 1;
    end
    if String.Length(email) < 1 then
    Dialog.Message("Error", "Please enter your email and re-submit. Thank you.");
    error = 1;
    end
    if String.Length(mobile) < 1 then
    Dialog.Message("Error", "Please enter your mobile and re-submit. Thank you.");
    error = 1;
    end
    if String.Length(zaincard) < 1 then
    Dialog.Message("Error", "Please enter your Zain Credit Card and re-submit. Thank you.");
    error = 1;
    end

    if error~=1 then
    -- if no errors exist, send the email now and give a confirmation dialog
    HTTP.Submit("http://www.artiagraphics.com/mail.php", {hardse=hardse, name=name, country=country, town=town, email=email, zaincard=zaincard, mobile=mobile}, SUBMITWEB_POST, 20, 80, nil, nil);
    Dialog.Message("Success", "Success, your info has been submitted.");
    end

  • #2

    the image

    Comment


    • #3
      The code of Serial Matching (It is working well)

      * =****
      * = * ***
      * = * ***
      * = * **
      * = * ***
      * = * **
      * = * **
      *=* **
      thameur = Math.Floor(e);
      belkiss = Input.GetText("Input3");
      if belkiss == "" then
      Dialog.Message("Notice", "wrong", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
      end

      belkiss =belkiss +0
      if belkiss == thameur then
      xButton.SetVisible("xButton1", true);
      elseif belkiss ~= thameur then
      Dialog.Message("Notice", "please don't try", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
      else
      end

      Comment


      • #4
        Nice idea but maybe a bit complex, rather limiting and reinventing the wheel just a bit.

        If I was to buy some e-learning material I would expect to be able to use it....
        #1 At home where there are more than 5 PC's (linux, Windows, MAC and a very retro Amiga towered 1200) plus a few android tablets. I would expect to be able to access and use it on any of these.
        #2 At work (there are hundreds of PCs plus a few MAC and UNIX/Linux) and within the area I usually work about 12 windows PCs and 3 UNIX.
        I would expect to be able to access and use it on any of these.

        Most of the current crop of LMS or CLMS systems can handle this, giving access to one user and can collect payments from one user. Then they, the end user, can access from any on line PC with a modern web browser.

        If it is to make the content safe then it isn't going to work, as soon as it is on screen it can be copied.

        As I said, nice idea but .....

        Comment

        Working...
        X