Jump to content

noob noob noob


xpace

Recommended Posts

I have an onchange  function in my PHP form that sends a value via GET and then shows it in a DIV named extra.

form method is POST btw

 

<select name='business_type_main' onchange=\"$('#extra').load('?trade='+this.value);\">

 

it shows up checkboxes selected by the value of /trade/ without reloading the page.

then I just select any number of checkboxes and press NEXT, which is a SUBMIT button (of course there are other fields to fill up).

after pressing the SUBMIT (NEXT) button it will call a PHP function to check all required fields and if there are some missing or incorrect, it will show up

the same form with already inserted values and warning messages.

here comes the big problem : I need to show the checkboxes again with the originally ticked boxes and have the /trade/ variable value ready again for following SUBMITs so everytime the client makes a mistake it will show all the fields with values already inserted including the checkboxes.

 

I hope it is clear enough to understand my problem.

 

thanks very much

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.