The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Using & withing a form value string, I can't figure out how to do it!
danjpalmer
post Dec 24 2010, 11:15 AM
Post #1





Group: Members
Posts: 2
Joined: 24-December 10
Member No.: 13,458



I want to be able to add a “&” to a form value, as shown below:

<input type="checkbox" name="sku" id="sku" value="ig-0003h-p&sku=vipt-0001&sku=emt-0001">

However using & or &amp; always causes the value to change to %25 when viewed in a browser. I’ve even tried using %25 which still doesn’t work. Do you know of a way I can use the & within the value string?

Thanks,
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 24 2010, 12:14 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



You use GET? Not totally sure, but I think you actually need to divide it in different inputs. Du you really want to identical name values BTW?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
danjpalmer
post Dec 24 2010, 12:29 PM
Post #3





Group: Members
Posts: 2
Joined: 24-December 10
Member No.: 13,458



QUOTE(pandy @ Dec 24 2010, 05:14 PM) *

You use GET? Not totally sure, but I think you actually need to divide it in different inputs. Du you really want to identical name values BTW?



The string is as intended for the shopping cart we use so the fact that they are sku= doesn't matter. I'll try and figure something out but if anyone has any ideas id love to hear them!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 25 2010, 01:24 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Well, I think that if you are doing it with a from you need to use several inputs.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 06:19 AM