Jump to content

Complicated JQuery form with MySQL data submission issue


dennishall

Recommended Posts

Hi All:

 

I've been working on a POC ROI form that works well until I attempt to process the form data.

To be more clear, the form animation works fine when not processing the php file related (see lines 66, and 157 in index.php to disable php processing) Also see comment on line 142.

When I enable the php processing by commenting line 66 and and inserting go.php in the action="" of the FORM tag, the php processes correctly and writes to MySQL.

When I disable this function th eforms JQuery works fine, but (of course) the input is not submitted to MySQL via my go.php process.

 

My issue is that I'm trying to have the best of both worlds where my form animation is perfect AND I write to MySQL so this means I cannot be redirected to go.php and I also need the user input to remain in the form.

 

I know AJAX should be the solution, and I have tried many things (for my last attempt, see commented lines 139 to 148).

 

Can anyone assist me in where and what specific AJAX code I would need to insert to get my JQuery to remain fully functional AND make use of my go.php?

 

I have attached my roi.zip containing the the index.php and go.php files - my DB table is straight forward, table name roi with the 4 fields named software(VARCHAR30), patients(INT11), reimbursement(INT11), and rejection(INT11))

 

Thanks in advance and Happy Holidays.

 

Best Regards,

dennishall

 

 

 

[attachment deleted by admin]

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.