RE: basic php question...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi Kaleb....

looks like the header approach will work for my needs..

thanks


-----Original Message-----
From: Kaleb Pomeroy [mailto:phplist@xxxxxxxxxxxxx]
Sent: Tuesday, November 04, 2008 11:46 AM
To: bruce
Cc: 'Micah Gersten'; php-general@xxxxxxxxxxxxx
Subject: Re:  basic php question...


<?php
header("location: pagetogoto.php");
?>

There can be no output before this (even whitespace before open php  
tags)

Kaleb <><

On Nov 4, 2008, at 1:41 PM, bruce wrote:

> and what's the best way to do the redirect ????
>
> sample code would be cool!
>
>
> -----Original Message-----
> From: Micah Gersten [mailto:micah@xxxxxxxxxxx]
> Sent: Tuesday, November 04, 2008 11:33 AM
> To: bruce
> Cc: php-general@xxxxxxxxxxxxx
> Subject: Re:  basic php question...
>
>
> Is anything changing on the page?  If not, AJAX might be the way to  
> go,
> http://xajaxproject.org
> Otherwise, pass the parameters you want to foo.php and have it  
> redirect
> to the proper page with the proper arguments.
> Another alternative, is to store the parameters in the session and  
> pass
> them from foo.php without passing them to it.
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> bruce wrote:
>> hi guys...foo
>>
>> i've got a button that i want to select, and i want the app to  
>> process
> some
>> logic, and then return the user to the page. my question is how??
>>
>> something like
>>
>> base page:
>>
>> <a href="foo.php">button link"</a>
>>
>> foo.php
>> -process logic
>> -return the user to the base page, with the same querystring that
>>  was initially used to generate the initial base page
>>
>>
>> foo.php doesn't have any display function, just the logic
>>
>> thoughts/sample php pages/psuedo code chunks...
>>
>> thanks
>>
>>
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux