0

I am new to JQuery so i have to ask this question. I have to get the value of undermentioned code into a php file.

  jQuery(function($){

    var textover_api;

    // How easy is this??
	 
    $('#target').TextOver({}, function() {
      textover_api = this;
	 
    });

I want to get the text written by this code to the next php page. how can i do that. please help

2
  • You can use the ajax as well as traditional form processing etc. whatever convinient to you.. Commented Oct 24, 2015 at 8:13
  • Either submit the form or use ajax Commented Oct 24, 2015 at 8:28

1 Answer 1

0

Sending data from client to server using jQuery (Javascript) usually used to send without refreshing the whole page. This called AJAX

There are several sending methods to do it, the most popular are: POST & GET

A few examples:

GET request with jQuery

POST request with jQuery

Sending form data using AJAX

POST vs GET in AJAX

Write me if you need more explanation

Sign up to request clarification or add additional context in comments.

2 Comments

Marina K. like the example given in this page api.jquery.com/jquery.post, i want to pass the form value to the next php page
@UsmanAhmedMani If you need to send data to next php page then you can just use simple form - submit, where action of that form is your next php page simple form example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.