Page 1 of 1

creating run time controls

Posted: Wed Aug 31, 2005 7:52 am
by xs2manish
hi everybody

i am designing a application that is a client management system. now ours is a web based company so one of the details i have to store is their domain details.. now i want to make a control such that initially my form which will be used to feed the data, should show just one row where i will have three text boxes stating the domain name, renewal date. hosting renrewal date.

now what i want is that i should have an option(an ' add domain' button kind of thing) that if a particular client has more than one domain then on clicking the button i have another row added beneth the first one. the same way i should be able to add as many domain details the client have.

but unfortunately i just have an idea of what i want but none of how to get it. i need your help so plz help me

thanks in advance

Posted: Wed Aug 31, 2005 8:11 am
by n00b Saibot
As you may have noticed, PHP is a 'server-side' language, so this 'client-side' programming can be either done in JavaScript or ASP.NET. If you need further help regarding either, plz let me know.

Posted: Wed Aug 31, 2005 8:16 am
by raghavan20
hi xs2manish,
you have got the same post running in two forums.
could you remove any of your posts either at PHP-CODE or at PHP-THEORY.

sorry for cross posting

Posted: Wed Aug 31, 2005 8:58 am
by xs2manish
i m very sorry for cross posting .
however it was nothing intensional. as i was just trying to find a solution to my problem. but i never meant to do anything wrong. will make sure that i wont repeat it. but from my side it was just like to asking my queries to my two seniors.

sorry again for the problem created by me.

Posted: Wed Aug 31, 2005 9:04 am
by feyd
Don't worry about the cross-posting. :)

As for your original issue: it can be done via Javascript like n00b suggested, but it can also be done via php. Using session variables to store previous changes you can keep all the old sets of textboxes. Clicking the "add" button would submit the existing form prompting the system to store the information, output it again with an added table row. This allows for Javascript to be off, yet still give the basic appearance of the same thing (albeit with added page requests). Once finalized, they can use a different button that actually stores the additions. If they close the browser, those changes won't be recorded.