FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » form & lookup columns
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: form & lookup columns [message #172353 is a reply to message #172352] Mon, 14 February 2011 10:00 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Wolf wrote:
> Hi,
>
> I've got a database with these tables:
>
> Region (id, name)
> Province (id, id_region, name, shortname)
> Town (id, id_province, name)
> Shop (id, id_town, name...)
>
> I've made a form and I'd like that when I choose a region, in the next
> drop-down menu I want to show provinces of that region
>
> I've searched the web to study how to do this thing, but I haven't
> found anything: could you please give me some hints/ideas/links to
> tutorials?
>

If you want that to hapen without submitting the page back to the
server, you have two possibilitioes. One is a partial resubmit using
IIRC Iframes, the other is to downlaod the whole bloomin lot and use
javascript - and a lot of it - to dynamically change what appears on
one box as a result of selecting in another, without reference to the
server..

This means effectively replicating a lot of what SQL does in javascript
on data held in javascript arrays.

It is not trivial.

I am not clueful on iframes, but these may represent a simpler approach.

> Thanks a lot
>
> Best regards
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Curious problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 04:44:39 GMT 2024

Total time taken to generate the page: 0.03609 seconds