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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:24:39+00:00 2026-05-17T02:24:39+00:00

I was building a simple web based calculator which takes equations from a HTML

  • 0

I was building a simple web based calculator which takes equations from a HTML form, evaluates it on the server using PHP and sends the result back.

I am using Mootools to send the data via the req.send AJAX operation.

But, each time I have a ‘+’ in an equation, it is not seen on the POST data the server gets.

Any ideas why this is happening and how I can work around it?

eg:

10 + 12 in HTML form is seen as 10 12 in the $_POST data.

The Mootools send command I am using is something like this with

<textarea name="equationTextArea">10+12</textarea>

req.send("eqn="+$('equationTextArea').value);

Upon submit, I see $_REQUEST['eqn'] as 10 12.

  • 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-17T02:24:40+00:00Added an answer on May 17, 2026 at 2:24 am

    Try using the function encodeURIComponent over your text value. It, well.. uri encodes your text.

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

Sidebar

Related Questions

I am building a small web based game, using html 5. I need my
I'm building a simple web based forum application. I want to allow users to
I'm building a simple web application in tornado.web using mongodb as the backend. 90%
I'm building a web app to design and animate simple 3d scenes using the
I'm building a simple web application that handles a simple database using struts and
I am in project where we are building a simple web calendar using Java
I'm building a very simple web-based file browser for my website. I've styled my
I've been toying with the idea of building a web-based Roguelike game using Silverlight
I am building a web framework which is based on a hierarchical modular design.
I'm building a simple web-based RSS reader in Python, but I'm having trouble parsing

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.