Frans
|
| Posted: 07/25/2003, 12:28 AM |
|
Hello,
I need help for PHP sessions. Thus a Codecharge Studio Expert with a good knowledge of PHP. You can email me atwindsur@windsurfnet.nl if you are
willing to help me.
Regards,
Frans
www.windsurfnet.nl
|
|
|
 |
Frans
|
| Posted: 07/25/2003, 3:19 AM |
|
Nobody,
After 4 days with the support of Codecharge it is still not working. I want to turn a param into a session. That shouldn't be so difficult for a PHP/Codecharge Studio Guru.
Regards,
Frans
|
|
|
 |
RonB
|
| Posted: 07/25/2003, 5:08 AM |
|
What is your problem exactly. To assign a value to a session variable you use CCSetSession("variable name", $value);
To retrieve it you use
CCGetSession("variable name","");
Use the functions in one of the events.
Ron
|
|
|
 |
Frans
|
| Posted: 07/25/2003, 9:55 AM |
|
Hello Ron,
This is what i want to achieve:
I have made a website for wind- and kitesurfing. the goal of this site is that clubs can get a website for free. At this moment i transfer the parameter club_id, but this has one great disadvantage. My menu in the header must receive this parameter like GET.
The visitor of my site can do search queries, sort queries, and Next_page queries. These are all appended to the URL and sometimes these URLS give errors like page not found or no data available etc...
See the following URL: http://www.windsurfnet.nl/_pzv/FotoAlbumDetail.php?memo...img_albumPage=3
So i want to set a session for the club_id, so my header links are clean if the click on a link. The following is what the Codecharge Support said:
Set a session on my clublocator page so the session is set:
if (CCGetParam("club_id", "") != CCGetSession("windsurfneClubID", ""))
{
CCSetSession("windsurfneClubID", CCGetParam("club_id", ""));
}
Then each page has to receive this session with the corresponding club_id as session.
Look at http://www.windsurfnet.nl/_pzv/Clublocator.php or if you have rights for this look at: http://support.codecharge.com/usrCaseResponses.asp?case...esponsesHistory
Hope you can help me with this?
Regards,
Frans
|
|
|
 |
RonB
|
| Posted: 07/25/2003, 3:25 PM |
|
hallo,
Session zetten op clublocator lijkt me een beetje onzin. De links op clublocater verwijzen immers naar index.php. Ik zou een beforeshow event doen op de index.php pagina:
if (CCGetParam("club_id", "") != "")
{
{
CCSetSession("windsurfneClubID", CCGetParam("club_id", ""));
}
vervolgens zet je in alle grids die informatie laten zien afhankelijke van het club_id de parameter club_id met als bron windsurfneClubID vanuit Session.
Het probleem met de oplossing van Yes lijkt me dat clublocator nooit de parameter club_id ontvangt omdat er naar index.php wordt verwezen vandaar mijn suggestie om de club_id
Ziet er trouwen goed uit die site 
Ron
|
|
|
 |
Frans
|
| Posted: 07/26/2003, 1:20 AM |
|
Hoi Ron,
Volgens mij mogen we hier niet in het Nederlands posten. Daarom
ga ik nu verder in het brakke Engels van mij.
I've done what you suggested. Could you see my screendumps at: http://www.windsurfnet.nl/_pzv/setsession/
Maybe i'm missing something.
Regards,
Frans
|
|
|
 |
RonB
|
| Posted: 07/27/2003, 9:05 AM |
|
Hi,
two problems:
on clublocater set source type to field not session since the session varible wasn't created yet (that happens on the index.php page)
you mixed upo the parameter on the index.php they should be the otherway around windsurfneClubID=club_id (source session>) if the parameter name on clublocator is set to club_id. If you change these it should work
Ron
|
|
|
 |
frans
|
| Posted: 07/28/2003, 3:54 AM |
|
Hello Ron,
>>on clublocater set source type to field not session since the session varible wasn't created yet (that happens on the index.php page)
Did it.
you mixed upo the parameter on the index.php they should be the otherway around windsurfneClubID=club_id (source session>) if the parameter name on clublocator is set to club_id. If you change these it should work
did it.
Still didn't work.
Regards,
Frans
|
|
|
 |
Frans
|
| Posted: 07/28/2003, 4:58 AM |
|
Hoi Ron,
Mail me eveninfo@windsurfnet.nl
Ben bereid om te betalen.
Groetjes,
Frans
|
|
|
 |
Boil35
|
| Posted: 07/30/2003, 8:06 AM |
|
I've a problem with my PHP application BookStore on line.When I log on Bookstore online Application if the username and password are false It returns Username or Password are incorrect ,when they are correct The application doesn't redirect to another page.
Somebody can help me
Boil35
|
|
|
 |
|