maes
11-21-2002, 07:58 PM
I'm trying to make a site completely dynamical with php and a mysql database. On that site, you have a news section, code section, etc. and I can upload files and change the content of the different sections in my admin pannel. I'm useing sessions for the login, and I have a few problems with my scripts:
[list=1]
I change he content of the sections with a textarea and then put it in my database. In that textarea, I write the contenet in HTML (so I put the HTML code in my database) But when I enter a link, php puts the PHPSESSID behind every link I type. I don't want this. What can I do?
note: in the form, I pass the PHPSESSID as hidden like this:<input type=\"hidden\" name=\"PHPSESSID\" value=$PHPSESSID>
ex: when I type <a href=www.codingforums.com>CodingForums</a>
he will make this out of it:<a href=www.codingforums.com?PHPSESSID=122c8e67ba1874a6118e9dafc816a19f>CodingForums</a>
when I brows my admin pannel with links (not forms), he'll put the PHPSESSID in the browser bar. how can I keep the PHPSESSID hidden from the user?
The session "cookies" are stored on my server. for that, it needs a tmp directory in the directory where my loginscript is. Can't I put it somewhere on a general place? I don't think it deletes those cookies, because even when I'm not logged in, I have files in that tmp directory. Shouldn't they be deleted when the user loggs off, or when he leaves the site?
Like I said, I'm puting HTML in that textarea for output on my site, what if I want to use normal text. like when I press enter, he'll go to a newline. Like these forums, I press enter in this textarea and I get a newline after I pressed the submit button
[/list=1]
Thanks for reading all my questions. (I know it's alot, but I'm just learning :( )
--Maes
[list=1]
I change he content of the sections with a textarea and then put it in my database. In that textarea, I write the contenet in HTML (so I put the HTML code in my database) But when I enter a link, php puts the PHPSESSID behind every link I type. I don't want this. What can I do?
note: in the form, I pass the PHPSESSID as hidden like this:<input type=\"hidden\" name=\"PHPSESSID\" value=$PHPSESSID>
ex: when I type <a href=www.codingforums.com>CodingForums</a>
he will make this out of it:<a href=www.codingforums.com?PHPSESSID=122c8e67ba1874a6118e9dafc816a19f>CodingForums</a>
when I brows my admin pannel with links (not forms), he'll put the PHPSESSID in the browser bar. how can I keep the PHPSESSID hidden from the user?
The session "cookies" are stored on my server. for that, it needs a tmp directory in the directory where my loginscript is. Can't I put it somewhere on a general place? I don't think it deletes those cookies, because even when I'm not logged in, I have files in that tmp directory. Shouldn't they be deleted when the user loggs off, or when he leaves the site?
Like I said, I'm puting HTML in that textarea for output on my site, what if I want to use normal text. like when I press enter, he'll go to a newline. Like these forums, I press enter in this textarea and I get a newline after I pressed the submit button
[/list=1]
Thanks for reading all my questions. (I know it's alot, but I'm just learning :( )
--Maes