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!
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I'm not a developer, just taught myself a little php to extract info from a MySQL database. So, not evene really "newbie", more of "novice hack."
What I want to do now is use an HTML form with a select (drop-down), and use the resulting variable to select a new page to go to. I'm giving the user 3 options. So, basically, the php code so far looks like:
My question is: is there a way to use "$page_to" to actually select and go to a new page? The pages would be significantly different depending on the value of "$page_to", so a php?page_to= would be really ugly, I think.
Oh, one more thing. with this method, can I pass a variable from this page to the page I'm going to? For example, if I have another <select> variable in the form for "Employee Name", can I then pass that variable to either of the three pages that are selected by the if statement?
shiznatix wrote:nope, cant do it. ahha, i got you, you really can do it! woooooo oh man....
best thing i've read today.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.