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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:44:29+00:00 2026-06-15T09:44:29+00:00

In my form I have a text field that has data such as >2012-01-01

  • 0

In my form I have a text field that has data such as >2012-01-01 <2012-02-01
but when I serialize the form and post the data the field only has the >2012-01-01 and not the <2012-02-01.

Where did it go?

$("#grouppositionsform").live("submit",function(e){ 
    e.preventDefault();
    $('body').addClass('wait');
    $.post("/page.php",$(this).serialize(), function(data){
        $('.showdirectory').fadeOut('slow', function() {
            $(".showdirectory").html(data);
            $(".showdirectory").fadeIn("slow");              
        });
  }).error(function() { 
    //alert("error"); 
  }).complete(function() { 
    //alert("complete"); 
    $('body').removeClass('wait');
  });
});
  • 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-15T09:44:30+00:00Added an answer on June 15, 2026 at 9:44 am

    The answer is that joomla took that character and said no to it and didn’t parse it.
    So the jquery was fine and was posting the data but joomla has a function that makes sure returned data is safe.

    So when I checked $_POST[“searchstring”]; all the data was there.

    When I use JRequest::getVar(“searchstring”,-1); it protects me and removes the <.

    As it happens Joomla explain this here: http://docs.joomla.org/Secure_coding_guidelines
    and I changed getVar to allow the data through.

    So this worked for me.
    $sstr = JRequest::getVar(“searchstring”,’-1′,’REQUEST’,’STRING’,JREQUEST_ALLOWRAW);

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

Sidebar

Related Questions

So I have a multipart form that has fields for text, integers and file
I have a form that has two field inputs that also have the same
I have a form that has a required input, but jQuery is saying that
I have a form which has a search feature - a single text field
I have a form that has a group of 3 text_fields. I need two
I have an order form with about 30 text fields that contain numerical values.
I have a form in a PHP script and one text field. However when
In my TEdit field I have text in the form <number1>..<number2> . My idea
Have a form that is emailed with checkboxes. Some checkboxes have an optional field
I have the following jQuery click() function that needs to send the form data

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.