Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 393383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:15:07+00:00 2026-05-12T16:15:07+00:00

I have a review PAGE with a TEXTFIELD. User need to be able to

  • 0

I have a review PAGE with a TEXTFIELD.
User need to be able to write LONG STORY (1000 words+) may contain chars like ()*&^%$#@\/<>

Once “save” is pressed I want to use Jquery GET -> to process content with PHP file.
(save in mysql database)

and return result.

let’s say I want to display "alert(words_were_saved:int)"

How can I pass through long, complex parameters to and from Jquery _POST, _GET without causing JS / HTTP errors ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:15:07+00:00Added an answer on May 12, 2026 at 4:15 pm

    Try these:

    using get:

    var text = $('#textfield').val();
    $.get('someurl.php",{data: text},function(result){
        alert(result);
    }
    

    Or using post(this should better than get when large data is submitted):

    var text = $('#textfield').val();
    $.post('someurl.php",{data: text},function(result){
        alert(result);
    }
    

    someurl.php:

    $data = $_REQUEST['data'];
    //do what you want to the data
    //print some thing
    echo 'saved';//this text will be alerted on get callback
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to redirect the user to the review page. I tried
I have a button 'buy' which links to the 'review' page like so: <%=
I have a search page where user can submit queries that try to match
I have a dynamic review system in place that displays 30 reviews per page,
I have a JSF Page which gets few inputs from the User, I want
hello I have a page ( http://schema.org/WebPage ) that contains a review ( http://schema.org/Review
I have got this html on the page: <a href=review.asp?sitename=webcamking#video_embed class=tutorials data_site=webcamking>&nbsp;&nbsp;Tutorial 1</a> This
I have a page on my MVC application where a user can edit /
I have a model: review.rb class Review < ActiveRecord::Base validates :title, :presence => true
I have a scientific paper under review, and a referee asked for my R

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.