Welcome Guest, Not a member yet? Register   Sign In
Date Time in URL...And percent 20 instead of space...
#1

[eluser]LeMec[/eluser]
Hello,

I am allowing the user to pick a Date and Time range and passing these values as parameters in a controller function($Start,$End,etc...)

The Date Time is built using javascript and ends up with this format: "2012-05-31 23:59:00".

The problem that I have is that when retrieving these values, they have
Code:
"Percent % 20
in them instead of the space and I am forced to remove it using explode or other methods.

That feels weird...Is there a better way of doing this?

Alain
#2

[eluser]CroNiX[/eluser]
urldecode()
Code:
function($Start,$End,etc…)
{
  $Start = urldecode($Start);
  $End = urldecode($End);
  //...
}
#3

[eluser]LeMec[/eluser]
Thanks CroNiX.

I think this should be better that explode and concat back Wink

Alain




Theme © iAndrew 2016 - Forum software by © MyBB