Reply to Re: href with php how do

Your name:

Reply:


Posted by Shelly on 09/19/07 13:11

"canyigitli" <canyigitli@hotmail.com> wrote in message
news:1190205706.059970.204760@n39g2000hsh.googlegroups.com...
> hi
>
> when i click a link;
>
> i want to open any page and sametime been any event( for ex. include
> any picture in a cell of table)
>
> sory isn't clear english :(
>

I'm not sure of what you are asking, but there are two possibilities as I
see it.

First One:
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 ?>.

Second One:
When you want to navigate to a new page, you want things to happen first
before the navigation. Well, you can do this either with a Javascript, or
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:
newpageurl");

Hope that helps.

Shelly

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация