Adding space in Web form query url

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Adding space in Web form query url

Postby Shlosera » Tue Jul 22, 2014 10:45 am

Hello,
I have some simple question about web form url. Actually I was not able to find information anywhere about this.
Is it possible to add space between two --A--web_var--B--s? I have provided web form with only one field for name that have to comprise first and last name. I set &name=--A--first_name--B----A--last_name--B-- and it really take first and last name together in the name field of the web form. The problem is that I can not insert space between them. I tried to put %20 in the middle but instead space this adds + between the names.
For example in the list I have the following lead first_name=John and last_name=Smith. In the query URL I put &name=--A--first_name--B--%20--A--last_name--B-- but the result in the web form name is John+Smith. Instead of space this put + sign.
Is there any way to divide these two field with space.
I will appreciate any help.
Shlosera
 
Posts: 10
Joined: Tue Jul 22, 2014 10:16 am

Re: Adding space in Web form query url

Postby mflorell » Tue Jul 22, 2014 6:58 pm

The space character is not a value URL character. I would recommend putting a plus "+" in there instead since it is replaced with a space in most URL conversion functions.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Adding space in Web form query url

Postby Shlosera » Wed Jul 23, 2014 2:06 am

Initially I tried to put '+' instead %20 but the result is absolutely the same. The first and last names are separated by '+' not by space.
I need to know if it is possible at all or just it is a problem of the web form.
Shlosera
 
Posts: 10
Joined: Tue Jul 22, 2014 10:16 am

Re: Adding space in Web form query url

Postby mflorell » Wed Jul 23, 2014 7:34 am

If the + is showing up on your destination web page, then it is the problem of the destination web page not parsing the URL correctly.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Adding space in Web form query url

Postby Shlosera » Wed Jul 23, 2014 9:26 am

Thanks for sharing your experience. I will check this with web page developers and I will share the result.
Shlosera
 
Posts: 10
Joined: Tue Jul 22, 2014 10:16 am


Return to Support

Who is online

Users browsing this forum: No registered users and 138 guests