Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 19-01-2004, 05:29 PM
New kid on the block
 
Join Date: Jan 2004
Location: Johor
Posts: 8
Rep Power: 0
ciki is on a distinguished road
Send a message via Yahoo to ciki
Question send var

macam mana nak hantar $variable ke page lain. $var tu saya nak pakai dalam beberapa page yg dlawati oleh user.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 19-01-2004, 06:05 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
If you want to make variables available on multiple pages, the best way to do it is to store them as session variables.

Have a look at:
http://au3.php.net/manual/en/function.session-start.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 20-01-2004, 05:37 PM
white_neck's Avatar
Senior Webmaster
 
Join Date: Jan 2003
Location: dreamland
Posts: 240
Rep Power: 76
white_neck is on a distinguished road
Send a message via Yahoo to white_neck
rightttttt....
using session is better..
but beware of the lack of session...
xpecially in php 4.3.4..
i had many problem with it...
so you better be careful..

but then, if you using session to store username only..
it better u encrypt the data and pass it thru url over the pages..

thiss is just my opinion
__________________
^_^ <== stay happy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 24-01-2004, 06:41 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
hek hek!~ crypt yg x crypt... ade je yg kene sniff data tu... WOOooOOoo warfghh!! warfghh!!
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 26-01-2004, 03:00 PM
white_neck's Avatar
Senior Webmaster
 
Join Date: Jan 2003
Location: dreamland
Posts: 240
Rep Power: 76
white_neck is on a distinguished road
Send a message via Yahoo to white_neck
ek eleh...
__________________
^_^ <== stay happy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 27-01-2004, 05:49 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
nape white? salah ke
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 28-01-2004, 08:56 AM
white_neck's Avatar
Senior Webmaster
 
Join Date: Jan 2003
Location: dreamland
Posts: 240
Rep Power: 76
white_neck is on a distinguished road
Send a message via Yahoo to white_neck
tak salah..
btul la..
cuma pening skit nak paham ayat ko tuh..(crypt yg x crypt)
hihihikk
__________________
^_^ <== stay happy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 28-01-2004, 11:04 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
ehek... silap la kot.. crypt jgn x crypt... pembetulan..
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 30-01-2004, 10:07 AM
white_neck's Avatar
Senior Webmaster
 
Join Date: Jan 2003
Location: dreamland
Posts: 240
Rep Power: 76
white_neck is on a distinguished road
Send a message via Yahoo to white_neck
hah baru ler btul..
hahahhaha...
__________________
^_^ <== stay happy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-02-2004, 07:13 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
ehe
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 04-02-2004, 10:48 PM
New kid on the block
 
Join Date: Jan 2004
Location: Johor
Posts: 8
Rep Power: 0
ciki is on a distinguished road
Send a message via Yahoo to ciki
kalo nk anto bbyk seswai ke pakai session...or apa yg terseswai..
saya nak anto dalam 2.3 data sekali...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 06-02-2004, 02:23 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
Using sessions is the best way to do it. It's possible to pass the data using the querystring, however it is a big security hole (wheter the passed data is encrypted or not), and should be avoided. (I'll explain why if someone asks)

As for session problems, you shouldn't have any if your running Apache.

The only problem I'v ever had with sessions is running PHP (cgi-module) with IIS6, works fine with IIS4 and IIS5.

So basically, try to avoid using the GET (querystring) method. Even for forms use the POST method. GET should only be used for safe data. For example, on a public page, you have the querystring ?page=1.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 06-02-2004, 04:34 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
nape ko tak guna ISAPI jer supyan?
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 06-02-2004, 05:44 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
I'm only pointing out that the CGI-module may cause problems with PHP sessions on IIS.

I'v tested both, and ISAPI comes out better (in terms of performance and security), but since most production servers that use PHP run on Linux/Apache instead of IIS, this isn't really an issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 07-02-2004, 01:16 AM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
yup! betul gak tu... better run on apache under linux lah.. so IIS nak simpan mane erk?
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send email through asp? pepsi_blue Website Programming 5 28-06-2007 11:55 PM
Snap, Send & Win !!! lina News and Announcements 0 06-07-2006 12:06 PM
send sms from web-based application chibo Website Design 1 30-11-2005 06:16 PM
send parameter sangasura Website Programming 5 06-09-2005 04:31 PM
ASP Send Mail GMCoolong Website Programming 1 26-04-2005 02:29 PM


All times are GMT +8. The time now is 03:28 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56