Jump to content

Ethandvv

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Ethandvv

  • Rank
    Newbie
  1. Ethandvv

    $file

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Chat - Customer Module</title> <link type="text/css" rel="stylesheet" href="style.css" /> </head> <body bgcolor="black"> <div id="wrapper"> <div id="menu"> <p class="welcome">Welcome, <b></b></p> <p class="logout"><a id="exit" href="logout.php">Exit Chat</a></p>
  2. Ethandvv

    $file

    <?php if(file_exists("log.html") && filesize("log.html") > 0){ $handle = fopen("log.html", "r"); $contents = fread($handle, filesize("log.html")); fclose($handle); echo $contents;}?></div> ===== I'm using PHP to create a chat, but i have encountered an error in which the ">" tag is causing the rest of the operation to be shown on the webpage. Any suggestions? (I have the part where the problem is occurring in bold and underlined. If you want me to post the main frame of this I can, just ask, I'm not sure if it's a file or just the script.
  3. Thanks, tons! JS wasn't working and now i know why, lol. I've read into the PHP a little and have a Question for you: When (after the user has submited the form), the PhP script starts if I use the $file=mkdir(fname == 'username') would i use that to make a new directory with the users 'username' or not?
  4. Okay, so any suggestions on how i would do that.. I know very little PHP and I'm unable to most actions due to my use of Mac
  5. Should I simplify it? Like this: ( I got messed up in the making and got myself confused, sorry ) function saveFile(){var userid;userid=document.getElementById('userid');var passid;passid=document.getElementById('passid');var passwordConfirm;passwordConfirm=document.getElementById('confirm'); if (passid == passwordConfirm) { /* Then some how save the userid and passid to external file, then close it */ }else { alert('Sorry, Passwords do not match.'); }} Thats better i think
  6. To create registration form for website in JS, but save it to an external file (users.txt)
  7. I'm making a chat website for some friends and I've tried multiple types of registration pages but, i can't figure it out. Please Help. This is what I have so far: <div id="body contents"> <div align="center" id="form_holder"> <form id="form_placement"> Username:<input type="text" id="UN" name="UN" autocomplete="on" runat="server" /> <br/> Password:<input type="password" id="PW1" autocomplete="off" runat="server" name="PW1" /> <br/> Confirm:<input type="password" id="PW2" autocomplete="off" runat="server" name="PW2" />
  8. Try; <HTML> <body> <head> <div id="id1"> <video src="http://www.somevideurl.com/" width="absolute" height="absolute"></video> !-- Other content.... --! </head> </body> </html> The only program need for this is Chrome because it supports all files/coding in the movie configuration.. Personally, me myself, am new to any of this and not sure if anything i post is helpful. Hope this helps. -Thanks!
  9. The solution (for me personally) was this: <div id="wrapper" align="top" height="auto" width="<!-- User set --!>"><div id="spacer">.......</div>.... ETC.THE RESULT OF THAT IS AN AUTO SET HEIGHT THAT WILL ADJUST ACCORDING TO THE AMOUNTOF FIELDS SET INTO THE DOCUMENT/DIV SECTION
  10. // admin controls<?phpif (!defined('CHAT_VERSION')) exit('No direct script access allowed');class Chat_Admin extends topcmmRequestRemote{ private $table_name; function Chat_Admin(){ $this->__construct(); } function __construct(){ global $wpdb; $this->table_name = $wpdb->prefix . "123flashchat"; } function chat_active(){ register_activation_hook(__FILE__,'jal_install'); } function chat_deactivate(){ global $wpdb; // remove activation check & version delete_option( 'widget_chat_activation' ); // delete 123flashchat table $deletechat = $wpdb->query( "DROP TABLE $th
  11. //Making the input for signing upfopen('usersfile.txt');mkdir(userName, + passcode);... some code...// How, would I allow the input after adding your login passcode and user name go to a separate file on another page?
×
×
  • Create New...