woodie55 — 2012-05-11T10:32:46-04:00 — #1
I have a html form that searches an online store, right now I'm using radio buttons to search for items 10-30% off. Now I'm wanting to add a checkbox to also search for items that offer free shipping. How do I add a checkbox to the form which will add to the existing % off string?
Thanks in advance.
woodie55 — 2012-05-11T11:30:27-04:00 — #2
I keep playing with the code and I don't think it's going to be possible.
Such as adding the following checkbox:
<input type="checkbox" value="ship0-" name="search" id="shipping">
Then performing a search for Xbox that's 10% off and free shipping results in the following string:
http://domain.com/s/term=Xbox&<font color='"#FF0000"'>search=10off</font>&<font color='"#0000CD"'>search=ship0</font>
The Red and Blue lines need to be merged in order for it to work, like:
scallioxtx — 2012-05-28T10:13:02-04:00 — #3
potentweb — 2012-06-21T06:18:04-04:00 — #4
The problem is your api call. The "&" separates each variable / value pair. You can't smash them all together like that. I'm assuming your using your querying a third party api and not querying your own database?