Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

direct to multiple pages using php

Status
Not open for further replies.

akaballa123

Technical User
Apr 29, 2008
46
US
Hi,

I was wondering, If I have two buttons on a page. If button A is clicked then it should directed to another page ( page A). If button B is clicked then it should be directed to page B. Eventhough I know how to do this using javaScript, I would like to use php to form this function.

Thanks
 
On the receiving script you would check for the name of the pressed button. Then you would redirect (via header command) to a applicable page based on which button was pressed.

However, if these are just buttons, would it not be easier to make them simple links and then you would not need javascript or php?

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top