PDA

View Full Version : Building a self-updating form


fadzuli
11-02-2008, 12:53
Hi all,

i would like some help in generating a form that updates the rest of the selections when a user inputs a particular selection.

Example:
1. initial selection is "i would like to buy a *car/bike/van*" (car is the selection)
2. then the page updates to "what brand of car *honda/toyota/subaru*" (honda is the selection)
3. the page updates again to "model of car *civic/accord/jazz/fit*"

if i select toyota then a different menu will be shown. this is all done in one page.

i hope u get the drift..currently i cant remember any websites to show the example but ive come across some.

i have no idea how to start. so someone pls, kindly help me out, its my first webpage. :dunno: thanks!

Darylngch
11-02-2008, 13:17
Hi all,

i would like some help in generating a form that updates the rest of the selections when a user inputs a particular selection.

Example:
1. initial selection is "i would like to buy a *car/bike/van*" (car is the selection)
2. then the page updates to "what brand of car *honda/toyota/subaru*" (honda is the selection)
3. the page updates again to "model of car *civic/accord/jazz/fit*"

if i select toyota then a different menu will be shown. this is all done in one page.

i hope u get the drift..currently i cant remember any websites to show the example but ive come across some.

i have no idea how to start. so someone pls, kindly help me out, its my first webpage. :dunno: thanks!

Its a very simple kind of webpage. Depending on what technology you want to use, you might want to consider javascript or vb.net (These two are the easiest) . This can be done by using the 'if' condition.

Oops!
11-02-2008, 13:47
I think you're looking for something like this.

https://register.creative.com/register/quickreg.asp?country=65&countrychosen=Singapore&region=2&languageid=1&showPdt=&nRegAuto=0&x=75&y=17&nRegOpt=1

fadzuli
11-02-2008, 14:12
Its a very simple kind of webpage. Depending on what technology you want to use, you might want to consider javascript or vb.net (These two are the easiest) . This can be done by using the 'if' condition.

hmm ok...will there be a step by step guide in doing it? or do i have to read thru everything and figure it out myself? coz my programming skills is crap...haha

I think you're looking for something like this.

https://register.creative.com/register/quickreg.asp?country=65&countrychosen=Singapore&region=2&languageid=1&showPdt=&nRegAuto=0&x=75&y=17&nRegOpt=1

yeah its something like that but not really :P

i cant seem to find an example...hmm...

Darylngch
11-02-2008, 18:47
hmm ok...will there be a step by step guide in doing it? or do i have to read thru everything and figure it out myself? coz my programming skills is crap...haha



yeah its something like that but not really :P

i cant seem to find an example...hmm...


I've done an example via aspx and vb.net which can be downloaded at http://personal.way2blog.net/simplepostback.zip . I reccomend you download visual studio to edit it to your liking. I added the submit button, as i forgot that there was a post back button which i needed to activate to enable an automatic redirection when a selection is done. And i'm quite lazy to edit all the files now.

Anyway, the main file (.aspx) is where you place all your selections for the user. On visual studio, double click on anywhere of the page [In design view], and you will see the codes (If something = something then blah blah blah else blah blah endif).

The codes are not very hard to understand, where ddl_xxx (Meaning the drop down list box). Each box must have its own name and values.


Try it on your IIS folder (Upload all the unzipped files there. It should work, as it works on my localhost). If your looking for visual studio, Visual Studio 2008 is currently on beta edition, so you can download it for free (Google it). I'm currently using 2005, so i and haven't seen 2008, so i can't really comment if it is the same.

fadzuli
12-02-2008, 11:25
oo thanks...i also found something like urs but it uses javascript http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm
i managed to edit the contents to my needs but the thing is, it has 3 selections...now i want 4 selections how do i do it? the files can be downloaded from the webpage. any help would be greatly appreciated. :)

Lance
27-02-2008, 15:00
use html... and name it correctly(most impt)

fadzuli
05-03-2008, 13:35
hmm ok thanks...now i have it up but the last question is now that i have build a "post" html form how do i get it to send the information to my email or create database?

Darylngch
05-03-2008, 16:08
hmm ok thanks...now i have it up but the last question is now that i have build a "post" html form how do i get it to send the information to my email or create database?

If you have a post html script, on the form itself have a action:"mailto: email add"

fadzuli
05-03-2008, 23:26
really?? thats all?? ive read countless of other tutorials and from the looks of it i had to add php, etc...that when i go :help:

Darylngch
06-03-2008, 10:51
really?? thats all?? ive read countless of other tutorials and from the looks of it i had to add php, etc...that when i go :help:

For forms, its much simpler.