href with php how do

This is a discussion on href with php how do within the PHP Language forums, part of the PHP Programming Forums category; hi when i click a link; i want to open any page and sametime been any event( for ex. include ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-19-2007
canyigitli
 
Posts: n/a
Default href with php how do

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 :(

Reply With Quote
  #2 (permalink)  
Old 09-19-2007
Lammi
 
Posts: n/a
Default Re: href with php how do

On 19 Sep., 14:41, canyigitli <canyigi...@hotmail.com> wrote:
> 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 think you wanna open a new browser window and change something on
your current page at the same time? that's javascript, not php.

Reply With Quote
  #3 (permalink)  
Old 09-19-2007
Shelly
 
Posts: n/a
Default Re: href with php how do


"canyigitli" <canyigitli@hotmail.com> wrote in message
news:1190205706.059970.204760@n39g2000hsh.googlegr oups.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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0