troubleshooting Question

jquery to asp - submitting a form to store in database

Avatar of tobzzz
tobzzzFlag for Spain asked on
ASPAJAXjQuery
6 Comments1 Solution418 ViewsLast Modified:
I have a HTML form with 3 text fields (name,email,telephone). Using jquery, the form posts without refreshing the page or going to another page. However, the way it's set-up means that spaces are lost and funny characters like  ? = & " ' are breaking the data.

At the moment, the code is very stripped down for testing purposes. The ASP page that the form is sent to is literally just storing the form data as sessions so I can see what's being passed to it from my form submit page.

If I do an alert box after line 28, I see the funny characters and spaces are still there. Its after that they get lost.
LINE 28: var dataString = 'name='+ name + '&email=' + email + '&phone=' + phone;

A friend said I should look into javascript maps to fix the problem but frankly I have no idea what that is, I'm not a JS/jQuery/AJAX guy. I'm classic ASP and classic clueless!

Can somebody please update my code so whatever is submitted comes out exactly the same in the ASP page?

Thanks experts!
jQuery-ASP.zip
ASKER CERTIFIED SOLUTION
Melih SARICA
Melih SARICA

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros