I am trying to fix a phone version website.
http://taxilax.com/phone/ select a service type then hit send info.
What happens is that it doesnt redirect to the:
onclick="form.action='http://taxilax.com/wpcontent/themes/taxi_theme/src/forms/totheairport_process.php';"
it adds this to the url: http://taxilax.com/phone/#
Anyone has any idea why?
Thanks!
You are only changing its action location and not posting the form. Your are using a link as well to post a form which is not the best idea either. You are putting href=”#” that is why you are getting “#” on your URL as well. I would do this completely different but to help you quickly:
This is not a good practice in my opinion because you should have a single event handler for the form submit not inline which keeps the code more maintainable. Also you should use the default HTML controls to post forms. If you want it to look like a link, just style a button or input type submit to take out the border and color etc.
You should also look at jQuery Mobile as its very good for mobile stuff.