How can i put a dynamic action for a 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
a_naguib_2000
Forum Newbie
Posts: 5
Joined: Fri Jul 22, 2005 7:33 am

How can i put a dynamic action for a form?

Post by a_naguib_2000 »

hi all
i have a function that prints a form, im using the get method, i need the following:
when i submit the form, it passes the names of the controls in it and an additional part that i wanna put it

for example:
when i click submit the url is
http://localhost/newpage.php?button=1st

what i need is to add (&year=2005), for example, when i click submit...
how can i do this???
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

Code: Select all

<input type='hidden' name='year' value='1995'>
a_naguib_2000
Forum Newbie
Posts: 5
Joined: Fri Jul 22, 2005 7:33 am

Post by a_naguib_2000 »

thnxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Post Reply