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

  • Home
  • SEARCH
  • 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 9032391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:58:16+00:00 2026-06-16T07:58:16+00:00

I have some an ajax script running that lets users search a dbase table

  • 0

I have some an ajax script running that lets users search a dbase table of contacts and then click on the contact to whom they want to email some text. The link to send the text to the contact is just an anchor link in the results with the text passed as a variable in the url. Then on the server side, the server emails the text to the contact’s email address.

The problem I have is that if the text exceeds a certain length instead of remaining hidden in the url, it becomes visible on the page. Then the script no longer works correctly. At first, I thought the problem might be due to a special character in the text corrupting the url of the anchor link but that doesn’t seem to be it…It’s just a matter of length.

I found this posting

that says there is not supposed to be a limit to the querystring. However, In my case, the problem occurs even before trying submit the querystring as it pops out of the url and is visible on the page. Since it is in an url going to the server I cannot think of a good way to pass the lengthy text value outside the url,

Has anyone run across this problem and if so can you suggest a workaround?

Here is example.

a href="sendemail.php?contactid=33&text=HERE IS SOME SHORT TEXT">Send to Harry</a> //works

a href="sendemail.php?contactid=33&text=HERE IS SOME REALLY LONG TEXT THAT GOES ON AND ON.....ON AND ON.... ON AND ON....ON AND ON....PAST A FEW HUNDRED CHARACERS">Send to Harry</a>  // "HERE IS SOME REALLY LONG TEXT etc." IS VISibLE ON PAGE
  • 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-06-16T07:58:18+00:00Added an answer on June 16, 2026 at 7:58 am

    Testing both of your links in this jsfiddle: http://jsfiddle.net/rzj6n/ everything is fine, your issue must be elsewhere.

    However if you want to avoid very long querystrings you may want to use a form to POST data instead of using a GET.

    <form action="sendemail.php" method="POST">
        <input type="hidden" name="contactid" value="33" />
        <input type="hidden" name="text" value="here is some text..." />
        <input type="submit" value="Send to Harry" />
    </form>
    

    Then you will need to access passed values with $_POST['contactid'] and $_POST['text']

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get some data from an PHP-Script via AJAX and want to have the
I have java script code to set some of the properties of ajax controls.
I occasionally have some long running AJAX requests in my Wicket application. When this
I have some html returned from an ajax call that contains blocks of html.
I have some jquery code that is doing an ajax lookup and returning comma
hello i have some problems with my php ajax script i'm using PHP/mysql i
I have a facebook application, and some functionalities require some sripts running via ajax.
I have a php script that gets user input (some text and a link),
I have written some jQuery ajax code where I am sending a request to
I have already implemented some AJAX pagination in my Rails app by using the

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.