how to create a prompt up message to confirmation of submit the form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sheau Wei
    New Member
    • Sep 2006
    • 34

    how to create a prompt up message to confirmation of submit the form

    i would like to create a prompt up messsage in when submit a form, how to make it?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    An alert pop-up message can only be generated by JavaScript. In PHP you'd have to echo or print a message to the screen. Are you looking for a JS alert?

    Ronald :cool:

    Comment

    • Sheau Wei
      New Member
      • Sep 2006
      • 34

      #3
      Originally posted by ronverdonk
      An alert pop-up message can only be generated by JavaScript. In PHP you'd have to echo or print a message to the screen. Are you looking for a JS alert?

      Ronald :cool:
      oh i see. i juz tought that it can be done by using PHP, so if i want to do the prompt up message how can i do? Another queastion is tat how can i do for the query if i want to insert data in a form, but this form was include two table information?

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        This how you can issue an alert (using JAvaScript) when hitting the 'submit' button:
        [HTML] <input type='submit' value='submit' onclick="javasc ript:alert('You r form has been submitted');">[/HTML]

        As to your other question
        Another queastion is tat how can i do for the query if i want to insert data in a form, but this form was include two table information?
        I am not sure I understand what you mean. Do you want to display a form with data from 2 tables from a MySql query? You mean a html <form> or just a html <table>? Please explain in more detail.

        Ronald :cool:

        Comment

        Working...