Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- href with php how do
September 19, 2007, 12:41 pm
rate this thread
Re: href with php how do
I'm not sure of what you are asking, but there are two possibilities as I
When the page loads, you want things to happen before it appears to the user
as a finished page. That is easy. Simply put all the logic you want before
the <html> section and enclose it in the <?php ?> section. You can set
variables that can be used in the html area by simply enclosing that logic
there within <?php ?>.
When you want to navigate to a new page, you want things to happen first
by having the button do a submit, test for that button being activated with
isset($_POST['thatbutton']), do your logic and then use header("Location:
Hope that helps.