Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22

Thread: send var

  1. #1
    Join Date
    Jan 2004
    Location
    Johor
    Posts
    8
    Rep Power
    0

    Question send var

    macam mana nak hantar $variable ke page lain. $var tu saya nak pakai dalam beberapa page yg dlawati oleh user.

  2. #2
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    230
    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

  3. #3
    Join Date
    Jan 2003
    Location
    dreamland
    Posts
    240
    Rep Power
    210
    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

  4. #4
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    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

  5. #5
    Join Date
    Jan 2003
    Location
    dreamland
    Posts
    240
    Rep Power
    210
    ek eleh...
    ^_^ <== stay happy

  6. #6
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    nape white? salah ke
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

  7. #7
    Join Date
    Jan 2003
    Location
    dreamland
    Posts
    240
    Rep Power
    210
    tak salah..
    btul la..
    cuma pening skit nak paham ayat ko tuh..(crypt yg x crypt)
    hihihikk
    ^_^ <== stay happy

  8. #8
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    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

  9. #9
    Join Date
    Jan 2003
    Location
    dreamland
    Posts
    240
    Rep Power
    210
    hah baru ler btul..
    hahahhaha...
    ^_^ <== stay happy

  10. #10
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    ehe
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

  11. #11
    Join Date
    Jan 2004
    Location
    Johor
    Posts
    8
    Rep Power
    0
    kalo nk anto bbyk seswai ke pakai session...or apa yg terseswai..
    saya nak anto dalam 2.3 data sekali...

  12. #12
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    230
    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.

  13. #13
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    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

  14. #14
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    230
    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.

  15. #15
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    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

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Send Free SMS with your PC
    By calvynlee in forum News and Announcements
    Replies: 80
    Last Post: 11-12-2014, 05:39 PM
  2. how to send email through asp?
    By pepsi_blue in forum Website Programming
    Replies: 5
    Last Post: 28-06-2007, 11:55 PM
  3. Snap, Send & Win !!!
    By lina in forum News and Announcements
    Replies: 0
    Last Post: 06-07-2006, 12:06 PM
  4. send parameter
    By sangasura in forum Website Programming
    Replies: 5
    Last Post: 06-09-2005, 04:31 PM
  5. ASP Send Mail
    By GMCoolong in forum Website Programming
    Replies: 1
    Last Post: 26-04-2005, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

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