December 10, 200817 yr Hi. So, the idea is, you've got two forms, each with a different PHP script and other properties (EG, character limit). Instead of having two taking up space and being inefficient, the user can toggle between them using one of two radio buttons. I'd be very appreciative if someone would tell me how to do that. Thanks, you knowledgeable chaps.
December 10, 200817 yr First thought (top of the head).. don't actually use radio buttons.. I'd use an image that looked like one instead. If you did this in conjunction with ajax or similar, you wouldn't have to have the page reload or anything either. ::edit:: Just thought, you could probably use the button images to toggle a div's visibility so that the new div appears on top of the old one, and the new div would have the new form in it
December 10, 200817 yr I've just made a search form for a property website that you can toggle between searching for lettings and searching for sales. Basically two forms, one of them hidden. You toggle between them via a link and the 'hidden' one slides into view utilising mootools scroll method. No page refresh and seems to work quite well. Can't show you a link yet as the site isn't live but I'll try and dig out the code for you tomorrow if I get the chance.
Create an account or sign in to comment