creating run time controls

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
xs2manish
Forum Commoner
Posts: 26
Joined: Mon Aug 22, 2005 10:46 pm

creating run time controls

Post 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
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post 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.
xs2manish
Forum Commoner
Posts: 26
Joined: Mon Aug 22, 2005 10:46 pm

sorry for cross posting

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply