Jump to content

flit

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

flit's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks again, God bless you all.
  2. Greetings, I am using Dreamweaver and when I use PHP includes in my code, the code does not look organized any more when I look at the source code from my browser. Can anyone help me out with this issue? Thanks in advance.
  3. Thanks. You are right I don't think that you can completely stop people from viewing the source of a html page. When you disable right clicks with javascript, they can disable javascript in their browser and they can still right click.
  4. Thanks. I haven't thought about that. I got a page, with a frame to "protect" my source code. But if they can see the URL displayed in the status bar, they can type that in, navigate to a page and see my source code anyway. So that is why I was trying to hide the URL in the status bar.
  5. Hello everyone, Is it possible to disable url display in the status bar with PHP?
  6. Hi there, Can anyone help me delete a comma from a session My session file looks like this id|s:8:"1,2,3,"; I know how to delete a variable from a session [unset($_SESSION['2']);], but I cannot delete the last comma from the session. I would like the session file to look like this: id|s:8:"1,2,3"; instead of id|s:8:"1,2,3,";
  7. I used to use <a href='"7.php?action=add&id=1">Test 1</a> But I don't want anything displayed into my web browser after 7.php
  8. Hi there, I have the following links on a page: <a href="7.php<?php session_start(); $_SESSION['id']=1;?>">Test 1</a> <br> <a href="7.php<?php session_start(); $_SESSION['id']=2;?>">Test 2</a> <br> <a href="7.php<?php session_start(); $_SESSION['id']=3;?>">Test 3</a> <br> <a href="7.php<?php session_start(); $_SESSION['id']=8;?>">Test 8</a> When I click the first link [test 1], the value 8 is written in the session file and not the value 1 When I click the second link I want the value 2 to be added into the session file. I want my session file to look like this: id|i:1,2; Can somebody tell me what I am doing wrong??
  9. When I press the first link I want to write 1 to the session file but when I press 1 it writes 8 to the session file When I press the second link I want to write 2 to the session file but when I press 2 it writes 8 to the session file When I press the third link I want to write 3 to the session file but when I press 3 it writes 8 to the session file I want my session file to look like this: 1,2,3,8....... I used to do this with <a href="99.php?action=add&id=1">Add id 1 to session</a> but I don't want to use that technique. I don't want the action=add&id=1 message printed in my web browser. I want to add id's like the links below. <a href="7.php<? php session_start(); $_SESSION['id']='1';?>">Test 1[/url] <a href="7.php<? php session_start(); $_SESSION['id']='2';?>">Test 2[/url] <a href="7.php<? php session_start(); $_SESSION['id']='3';?>">Test 3[/url] <a href="7.php<? php session_start(); $_SESSION['id']='8';?>">Test 8[/url] All I want to do is insert a id value into a session by clicking on a link, and retrieve the id's later to print some mysql info on a page
  10. When I added some more links, the program writes the id of the last link to the session thus 8 <a href="7.php<? php session_start(); $_SESSION['id']='1';?>">Test 1[/url] <a href="7.php<? php session_start(); $_SESSION['id']='2';?>">Test 2[/url] <a href="7.php<? php session_start(); $_SESSION['id']='3';?>">Test 3[/url] <a href="7.php<? php session_start(); $_SESSION['id']='8';?>">Test 8[/url] Help?
  11. I can't add the same id to the session more than once
  12. Thanks dude, it worked! Another id was added to the session. Can I use the foreach statement later to retrieve data from a database like they are stored? -> id|a:4:{i:1;s:1:"1";.........;}
  13. Hi there, I am trying to add id's to a session, but when I click on a link to enter the id into the session, it overwrites it and does not add an id to the session. I have a page called 6.php with the following lines: <a href="7.php<? php session_start(); $_SESSION['id']='1';?>">Test 1</a> -->writes to the session: id|s:1:"1"; <br> <a href="7.php<? php session_start(); $_SESSION['id']='2';?>">Test 2</a> -->writes to the session: id|s:1:"2"; I want to be able to add an id into the session and not overwrite it. Can anyone help me?
  14. I am inserting data into the session via the url <a href="books.php?action=add&id=1"> When I open http://localhost/books.php it inserts some data that I do not want in the page When I press refresh it inserts it again.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.