CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    27

    using onBlur/onChange

    im using php and MySQL

    i dunno if this is the right section to post this,

    i have a TABLE labor charges with fields within warranty and without warranty

    then

    i have a form with radio buttons naming within warranty and without warranty.
    at the later part of my form there is a select statement named labor charges.

    labor charges: [SELECT]

    now what i want to do is when a user select the radio button within warranty i will use the onChange/onBlur and functions that the labor charges SELECT STATEMENT will only display the within warranty column coming from labor charges table. just like a realtime.

    can i do this in php function or should i use javascript

    how can i do that?

    any idea?

    tnx in advance!

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: using onBlur/onChange

    [ moved thread ]
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    May 2002
    Posts
    10,943

    Re: using onBlur/onChange

    Any change to a MySQL database must happen on the server-side. However, since you are also initiating the change from the client-side and displaying data, you will need to use AJAX to implement that.

    Take a look at W3Schools AJAX Tutorial to get you started.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured