html form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stanleycwb
Forum Newbie
Posts: 23
Joined: Fri Aug 15, 2008 11:33 am

html form

Post by stanleycwb »

Hi, i encountered some difficulties when doing a html form.

I will have many similar fields.

job1
a:
b:
c:
d:
e:

job2
a:
b:
c:
d:
e:

job3
a:
b:
c:
d:
e:

but i think that it waste space and is not user-friendly. so im thinking of either using collapsible menu or linking method.

collapsible menu
+job1

+job2

+job3

or

job1
a:
b:
c:
d:
e:

more

submit clear

when "more" clicked, it will open another window and then to here

job2
a:
b:
c:
d:
e:

job3
a:
b:
c:
d:
e:

submit clear

and then once they press submit, it will not execute the codes 1st and will save them and redirect back them to the previous page and then when they click on the submit in the 1st page, the codes will then executed.

Is it possible to do these?
Anyone can help me?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: html form

Post by jayshields »

stanleycwb wrote: and then once they press submit, it will not execute the codes 1st and will save them and redirect back them to the previous page and then when they click on the submit in the 1st page, the codes will then executed
Sorry, you lost me there. Can you rephrase that? You should also post some code too so we can see what you're trying to do.
stanleycwb
Forum Newbie
Posts: 23
Joined: Fri Aug 15, 2008 11:33 am

Re: html form

Post by stanleycwb »

never mind. I change my plan.

I have decided to make it like if i select on a check box, some fields will be deactivated.(like those that become a bit grey and cannot select anything, write anything on it) unless we unselect the checkbox.

there will be like 2 checkboxes.

[ ]Further studies
Name of course [_____________]
Name of institution [__________________]
description [_________________________________________________]

[ ] Work
Working industry [_______________]
Working_Department [____________________]
Job_position [____________________]
Description [__________________________________]

all fields will be not active other than the check boxes. Once we select the future studies option, then name of course, institution, and description will be active and could fill in the fields. But if we untick the check box again, it will become inactive again.
Same goes with the work option.

Anyone can help me?
I need help urgently!
Thanks!
Post Reply