Jump to content
xisto Community

jailbox

Members
  • Content Count

    38
  • Joined

  • Last visited

Posts posted by jailbox


  1. okay well no offence man, but like who the hell are korn. i mean i thot i knew alot of peeps but seems  i dont know this one.,well i think maybe its where u from or maybe where they are from?????????????any way, who are they or him? :P

    Where the hell are you living?
    Anyways, Korn are good but I prefer something heavier like Iced Earth or Metallica

    EDIT: Does Korn have a song called Frankenstein? Im listening to a song called Frenkenstein right now. Its performed by Iced Earth but the drumming sounds just like Korn. I just wanted to know if its a cover or not.

  2. So, im making a chatroom in wml/php with no database. I have most of it covered but I have a few problems. When a user enters the chat he/she has to enter the nickname. After the user has entered one message the chatroom "forgets" the nickname so if he/she enters another message, the name wont be displayed. I tried using sessions and cookies and such but I cant get em to work.

    Mind showing me your source? And yes cookies is the best way. Your source should look something like this:

    <?php[br]if(isset($_POST['nickname'])[/br]  setcookie('nickname', htmlentities($_POST['nickname']), 999999);[br]?>[br][/br]<form>[/br]<input name=nickname value="<?= isset($_COOKIE['nickname']) ? isset($_COOKIE['nickname']) : NULL; ?>"[br]<input name=message><input type=submit value="Say It"></form>
    [/br]And remember you need to set the cookie before you write anything to the page. That means before the <html> tag ;)

    Actualy the source for the page where user inputs his/her name is

    <?php [/br]session_start( ); session_register("nick"); [br]header("Content-type: text/vnd.wap.wml"); [/br]echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"; [br]echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" [/br]. " \"http://http://www.wapforum.org/DTD/wml_1.1.xml;; [br]?> [/br]<wml> [br]<card id="en" title="Enter nickname">[/br]<p>[br]<?php $session=session_id(); ?>[/br]</p>[br]<p>[/br]  [br]            <do type="accept">     [/br]            <go href="viewroom.php?nick=<?echo $session?>" method="post"> [br]            <postfield name="nick" value="$nick"/>  [/br]            </go> [br]        </do> [/br]        Enter nickname: [br]        <input title="nick" name="nick" type="text" /> <br/>  [/br]               [br]</p>[/br]</card>[br]</wml>[/br]

    I dont think thats correct though.

    I dont know if its neede but heres also the code for the page that writes the data into the file

    <?php [/br]session_start(); [br]header("Content-type: text/vnd.wap.wml"); [/br]echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"; [br]echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" [/br]. " \"http://http://www.wapforum.org/DTD/wml_1.1.xml;; [br]?> [/br]<wml> [/br]<card id="msgadd" title="message added">[br]<p align="center">[/br]<br/>Your message has been added[br]</p>[/br]<p><?php $session=session_id();  ?></p>[br]<p><a href="viewroom.php?nick=<?echo $session?>">Chat</a></p>[br][/br]<p>[/br]<?php [br][/br]//use the fopen() function [br]$fp=fopen("msgs.txt",  "r");   [/br]$data = fread( $fp, filesize( "msgs.txt" )); [br]fclose( $fp ); [br][/br]$fp2 = fopen( "msgs.txt", "w" ); [br][/br]//using the fputs() function [/br]fputs($fp2, " [br]<p> [/br]//I was just testing so dont even notice the session varaible below[br]$session: $msg <br/>[/br]</p> [br]". $data ); [/br]   [br]fclose($fp2);   [br][/br]?> [br][/br]</p>[/br]</card>[br]</wml>[/br]


  3. What are you talking about? The packages that Xisto provides are equivelent and even better than many of those that you have to pay money for. All that is asked in return is that you submit a few posts within the forum. If you can't be bothered doing even that, then there is something very wrong with you.
    And if you aren't willing to contribute to the community, then there isn't much point in you being here.


    Yeah the hosting seems to be very good here. But the thing is that after I get the hosting, ill probably be happy with it but at one day I remember that I havent posted any messages for a week and bye bye hosting. So, my account would be deleted and my site is gone again. Its happened to me before.
    Oh, and how active do I have to be in the forum? Is 1 post in a day enough?

  4. So, im making a chatroom in wml/php with no database. I have most of it covered but I have a few problems. When a user enters the chat he/she has to enter the nickname. After the user has entered one message the chatroom "forgets" the nickname so if he/she enters another message, the name wont be displayed. I tried using sessions and cookies and such but I cant get em to work.


  5. I use the mobile web feature on my cell phone when I'm on the go and it seems to work great.

    I use wap when im going out and it seems to work great.
    That ;) sounds better than that "mobile web feature" thing.
    Anyways, I use wap too. All the time
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.