Links using form data on same page
Posted: Wed Oct 12, 2005 10:43 pm
I'm not sure if this can be done in PHP, or if I have to go to javascript, which I don't know nearly as well, but I'm sure I could figure out, but want to avoid it if possible.
What I need to do is have, a date box (drop down or typed in, the type doesn't really matter), that affects a link when clicked.
For example:
A drop down list of the past 7 through the next 7 days at the top of the screen
Someone selects Tuesday 10/18
Now when they click a link on that page (say the link called blue), it would send them to http://www.example.com/blue/20051018. If they clicked on the red link, it would send them to http://www.example.com/red/20051018.
It's a simple idea, not sure if I explained myself quite right. I've just never had to work with something that effects the current page you are working on, so I don't even know if that's possible with just PHP, or where I would go to learn more about the javascript that would be required, any help?
What I need to do is have, a date box (drop down or typed in, the type doesn't really matter), that affects a link when clicked.
For example:
A drop down list of the past 7 through the next 7 days at the top of the screen
Someone selects Tuesday 10/18
Now when they click a link on that page (say the link called blue), it would send them to http://www.example.com/blue/20051018. If they clicked on the red link, it would send them to http://www.example.com/red/20051018.
It's a simple idea, not sure if I explained myself quite right. I've just never had to work with something that effects the current page you are working on, so I don't even know if that's possible with just PHP, or where I would go to learn more about the javascript that would be required, any help?