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 9110099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:11:44+00:00 2026-06-17T03:11:44+00:00

This is really weird. I have a textbox inside a form. On clicking the

  • 0

This is really weird. I have a textbox inside a form. On clicking the submit button, the content of the textbox gets posted to page2.php

If the textbox contains a text like

This is a sample url 
https://maps.google.com/maps?q=karnataka+badminton+association+bangalore&ie=UTF-8&ei=w4_lUNWmJozjrAfSkYGYBA&ved=0CAsQ_AUoAA 

Now when i hit submit, i am echoing the content in page2.php and this is what i get:

//echo $_POST['message'];

This is a sample url 
https://maps.google.com/maps?q=karnataka

I am getting the message but the URL gets cut after the first ‘+’. Any ideas how to get this work ?

I even checked with firebug the POST request and there it correctly displays the complete url.

NEW EDIT:
I am trying this with ajax now.

  • 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-17T03:11:45+00:00Added an answer on June 17, 2026 at 3:11 am

    You should encode the url first. You can use encodeURIComponent(str) or encodeURI(str) embedded in javascript to do so. See: Encode URL in JavaScript?

    You should then use urldecode/rawurldecode to decode the url into its native form. You can also store the decoded form and decode the url in php / javascript as needed. See:http://php.net/manual/en/function.rawurlencode.php

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

Sidebar

Related Questions

This is really weird. I have a php script and i intentionally added a
Ok, this is a really weird one. I have an MPI program, where each
this seems to be weird but it really happened. I have this code working
After ages of programming in php this question seems really weird still to me.
This is a really weird problem: I have set up the authlogic_openid_selector_example app .
UPDATED INFO: OS Windows 7 32bit Apache 2.2.15 PHP 5.2.13 This is really weird.
I have this really weird behaviour in my rails application. All find queries are
I have this really weird bug. When I scroll down my table view, down
I have this really weird problem with my MySQL table. After some time a
I have this really weird problem in my code (.Net Framework 3.5). So, in

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.