Search found 7 matches
- Sun Aug 10, 2008 11:05 am
- Forum: PHP - Code
- Topic: Session
- Replies: 2
- Views: 230
Re: Session
Cheers worked like a charm, THANKS.
- Sun Aug 10, 2008 8:09 am
- Forum: PHP - Code
- Topic: Session
- Replies: 2
- Views: 230
Session
Hi im trying to set a session on one page and view it on another, i cant get it to work for some reason:
1st Page
2nd Page
1st Page
Code: Select all
<?php session_start(); ?><?
session_register( "sess_test" );
$sess_test="test";?>Code: Select all
<?print " test = $sess_test <br>" ;- Fri Aug 08, 2008 6:00 pm
- Forum: PHP - Code
- Topic: Redirect
- Replies: 5
- Views: 226
Re: Redirect
Cheers i got rid of all the white space even before the first php open.
Works Prefectly. THANKS ALL.
Works Prefectly. THANKS ALL.
- Fri Aug 08, 2008 5:26 pm
- Forum: PHP - Code
- Topic: Redirect
- Replies: 5
- Views: 226
Re: Redirect
i get: Warning: Cannot modify header information.
- Fri Aug 08, 2008 4:43 pm
- Forum: PHP - Code
- Topic: Redirect
- Replies: 5
- Views: 226
Redirect
is it possible to put a redirect in a function because i get an error when i try:
Code: Select all
function SrtringToLong()
{
header( 'Location: http://www.php.net' ) ;
exit();
}- Fri Aug 08, 2008 10:46 am
- Forum: PHP - Code
- Topic: Global Variable
- Replies: 2
- Views: 684
Re: Global Variable
You can use http://www.php.net/return or pass the parameter as reference using the & CHEERS im new to PHP nd tat worked perfectly thanks, i used Return. like: <? $WORD='!"£$%^&*()dsf)(*&^%$£"_+@:'; function CheckWord($ZeWo...
- Fri Aug 08, 2008 10:08 am
- Forum: PHP - Code
- Topic: Global Variable
- Replies: 2
- Views: 684
Global Variable
Hello ALL, I am trying to check a string using a function and get out the result of the function. I can display the result in the function but i need to display it outside the function: <? $WORD='!"£$%^&*()dsf)(*&^%$£"_+@:'; function CheckWord($Z...