Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:33:56+00:00 2026-05-31T05:33:56+00:00

I am trying to use a jquery dialog box as a sign up form

  • 0

I am trying to use a jquery dialog box as a sign up form on a project I am working on, basically I am envisioning the dialog box functioning similar to an Iframe. I want the user to be able to enter their information into the form, the information in the form captured by the next page and entered into our database, then change the content of the dialog box to let the user know they were successfully entered into the database or something went wrong and they need to try again.

Is this possible and if so can anyone point me in the direction of an online tutorial?

Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:33:56+00:00Added an answer on May 31, 2026 at 5:33 am

    This is incredibly broad, but here is how I’d handle such a situation.

    First, some setup. Pages and their purpose

    Form Page – Get information from a user
    Data Page – Validation,disinfect user input. On successful validation and db insert, alert “Success” on failure of either alert “Failure”

    On your form page you don’t need to do anything special.

    On your Data page make 2 flags

    $data_validates = false;
    $data_stores = false;
    

    Set them to true when they succeed

    Then add

    if($data_validates && $data_stores)
    {
        echo "<script>alert('success');</script>";
    }
    else
    {
        echo "<script>alert('success');</script>";
    }
    

    We are just printing out the javascript to do the alert box. You could replace that with any legal javascript. Since PHP gets done server side, all the javascript you generate with it will be there for the browser to intepret AFTER it gets your page.

    Update: Some advice:

    If you want to use javascript to popup an alert box, accept input, check a database for that things existance, and then reply with a yes or no, you are going to need to employ a lot of tools. To do that I would create a RESTful API (using slim and redbeanphp is my favorite) and then use ajax to send a request for a json response.

    If you want to use php to modify the value of an alert box/dictate WHEN to alert: my example is a good starting place.

    jQuery is not javascript. Javascript is the language that powers all the awesome cool things that jQuery can do… which is not to say that jQuery doesn’t have a language of its own (like the multiple uses of language?)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use JQuery UI dialog (modal form) for the following scenario.
I am trying to use Jquery Dialog box in place of Java script standard
So I am trying to use FullCalendar and jQuery UI dialog box. And i'm
I am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes
Morning. I have a form which is rendered inside of a jquery dialog box
I have blinking text modal dialog box and slideshow with jquery. They working just
I'm trying to use jquery ui dialog and google maps... so when an user
I'm trying to use the jQuery BlockUI Plugin to block a jQuery dialog while
I'm trying to use the jQuery UI Dialog to display a confirmation prior to
I have a JSf form, I am tryin' to use jQuery Ui dialog plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.