Jump to content

AJAX Problem - Checkboxes


RaikoX92

Recommended Posts

Hi all,

 

I'm currently occupied with a PHP-JScript problem.

The point is that on the main PHP Page, checkboxes should be checked if they are checked or not.

These checkboxes are created according to the value a person chooses within a dropdown menu.

THe javascript behind the onChange arranges a mysql_query that seeks for any data, then displays the results in checkboxes, and puts it back on the main page. Now I have a submit button which should check if those created boxes are checked. I don't know how, can anyone help? The Jscript code is not important, it works (except in IE, but not gonna fix that yet).

 

Regards,

Pim

 

p.s. Here's the link to the website: http://www.raikox.com/informatica/gw_armybuilder.php

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

  • 2 weeks later...

Your IE problem is due to using GET for your ajax requests.  IE will cache them.  If you add a dummy variable to the end (javascript time works) it will fix that :)

 

As for your checkboxes, I'm not 100% sure what your'e trying to do.  Your checkboxes get passed to the server as an array $_POST['Extras'][0]="item1" etc

 

Make sure that you take a look at that logic, and check your checkboxes in php.  Then display them via your ajax call, and all should be dandy.

 

Good luck ;)

 

Also, use jQuery - it's way easier!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.