SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem passing datetime variable with colon via url

    Hi,
    My seemingly simple requirement is to send a datetime variable (amongst other variables) which includes a colon (e.g. 2013-07-01T13:30) to a partner's website via an URL for an availability query. This I need to do via a form and the GET method. However, when the form is submitted, everything is OK in the destination URL EXCEPT the colon which is changed to %3A (in example above, 2013-07-01T13%3A30), and the availability query subsequently fails with an invalid datetime error. How can I get around this?

    Hope someone can help as much googling hasn't come up with a solution.

    cheers

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    The problem is on the other end. The partner's web site is not decoding URL Encoding.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •