Php jump-I use jQuery to jump to the list. php page, but I want to pass the data on this page to the database through php.

Source: Internet
Author: User
Tags php database
Then the problem arises. The jQuery code to jump to becomes invalid. even if the alert tag appears, after clicking confirm, it will jump directly to action & quot; to get data, php & quot ;, therefore, I would like to ask if there is any way to transmit data to php and ** determine ** in advance (the content determined by jQuery meets the requirements) to jump to the specified list. phpjQuery code: * functionsublime () {* if ($ (& #39; # name, # message & #39 ;). val (). length; *} jump to the jquery backend development of the PHP database

Then the problem arises. the redirected jQuery code becomes invalid. even if the alert tag appears, after clicking confirm, the code will jump directly to action = "get data, php ", therefore, I would like to ask if there is any way to transmit data to php and ** determine ** in advance (the content determined by jQuery meets the requirements) to jump to the specified list. php

JQuery code:

  • Function sublime (){
  • If ($ ('# name, # message'). val (). length <1 ){
  • Alert ("Enter required items ");
  • } Else if ($ ('# QQ'). val (). length <1 | $ (' # telphone '). val (). length <1 ){
  • Alert ("enter an optional item ");
  • } Else if ($ ('# telphone'). val (). length <10 ){
  • Alert ("Enter the correct mobile phone number ");
  • } Else {
  • Window. location. href = "list. php ";
  • }
  • }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.