Support » Plugin: Redirection for Contact Form 7 » “Pass value to URL” replaces SPACE with + instead of

  • Resolved kakarott

    (@kakarott)


    Hi,
    I’m using the “Pass all the fields from the form as URL query parameters” feature to Redirect, but values from fields containing space fails.

    For example:
    Myname = Jake -> works
    Myname = Jake Smith -> fails

    I’m following this tutorial to pass values from form A to form B:
    https://wplearninglab.com/contact-form-7-get-value-from-url/

    I notice the final redirect URL replaces space with + symbol which fails to fill my CF7 dropdown box:
    mydomain.com/?name=Jake+Smith

    Any advice on how to make that work (e.g. replace space with %20) so that it becomes:
    mydomain.com/?name=Jake%20Smith

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author yuvalsabar

    (@yuvalsabar)

    Hi @kakarott,

    Are you sure? I just tested and I get Jake%20Smith.
    Sorry about the delay with the answer.

    Yuval.

    Using the “Pass specific fields” works for me (instead of “Pass all the fields”), so it’s all good. But just want to share in case it’s relevant for you 🙂

    Pass specific fields:
    mydomain.com/?name=Jake%20Smith

    Pass all fields:
    mydomain.com/?name=Jake+Smith

    I wonder if the problem lies with my setup (I’m using older version of PHP etc.)

    Plugin Author yuvalsabar

    (@yuvalsabar)

    Hi @kakarott,

    Got it. Just uploaded a new version (1.3.4) with a fix.

    Thanks.

    Wow thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.