/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Need help with a search form

I am helping a friend with a website that was made with Joomla. He has an issue with a search form on one of the pages. The search form allows the user to enter their location (either through zip code or a map) then by how many miles away. Next there are check boxes with different kinds of games. At the end the user may pick “gamers matching all” or “gamers matching any”. The problem is that the “gamers matching any” does not use the location as a required selection, so if the user puts in their location and selects games and uses this search option, then they could get results from users in different states even if they wanted to find local gamers.

The part of the code that controls this function looks like this:
<input type=”radio” name=”xius_join” value=”AND” checked />GAMERS MATCHING ALL
<input type=”radio” name=”xius_join” value=”OR” />GAMERS MATCHING ANY

If there is any other code someone needs to look at let me know, I just included this much because the website’s code is very unorganized.

To sum things up, when a user checks “Gamers matching any” I want it to first check to see if they put a location, if they did not, then it would function as it does now, but if they did then I want the location to come up in the search, and at least one of the check boxes to come up if any were selected.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @andea1129 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...