Jump to content

www.mihalism.com

Members
  • Posts

    68
  • Joined

  • Last visited

About www.mihalism.com

  • Birthday 09/19/1985

Previous Fields

  • Languages
    XML, PHP, MySQL, HTML, and CSS

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Interests
    Company founder of mihalism inc.

www.mihalism.com's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. http://www.uploadscriptdemo.com/more_info.php
  2. We will make it so delete URLs will only work for the IP address that uploaded it and and I think it would be a good idea to include it all in file like Invision Power Board 1.3 did. Sorry for that its a demo site and you never know what people will upload thats why the uploads are deleted everyday. We will build it into the next version. Honestly I never thought of doing that.
  3. Me and five other people have been publishing and improving this free image hosting script and we just wanted to know your opinion on its current progress.http://www.uploadscriptdemo.com/more_info.php?
  4. Here is a fixed version <?php include("../includes/DBConnecter.php"); ?>if($_POST['title'] == '') { echo "You did not enter a title<br>";}else{ $FirstName = $_POST['f_name'];} if($_POST['category'] = '') { echo "You did not enter a category<br>";}else{ $Category = $_POST['category'];}if($_POST['article'] = '') { echo "You did not enter an article<br>";}else{ $Article = $_POST['article']; }$sql = "CREATE TABLE ".$Category." ( `Title` TEXT NOT NULL, `Article` TEXT NOT NULL, `Time` TIMESTAMP NOT NULL )"; mysql_query($sql,$con); ?>
  5. preg_replace is a regular expression search and replacestr_replace will replace all occurrences of the search string with the replacement string
  6. I would recommend using preg_replace it's what I use and it works great <?php $_message = preg_replace('/\n/', '<br>', $_POST['a_answer']); ?>
  7. I have had that problem but I upgraded to firefox 2 and it worked for me
  8. CMS Can stand for the following:CMS-2 programming language, used by the United States NavyCode management system, a script or program for archiving and maintaining source codeContent management system, a system for maintaining web sitesCourse management system, a software system designed to facilitate the management of course materialsClinical Management System, software managing electronic medical records and practice management informationFor front-end and back-end read this:http://en.wikipedia.org/wiki/Frontend
  9. The link back to youtube is made into the flash player you can not remove it
  10. Yes the problem is permission denied so try using the chmod() functionhttp://php.net/chmodExample: <?phpchmod('upload/', 0777);?>
  11. I've been search for about a hour to know how to do this. I want the footer of the website to align to the bottom of the page. First I used position absolute to do it but I found it did not scroll. Does anybody have a idea on how to do it to allow it to scroll?
  12. This should fix your email problems, and I have tested it to make sure it works.For the errors I thought it would be faster for you just to echo them so thats what I did. <?php $url = 'http://www.yourdomain.com/accountok.php'; $user = $_POST['username']; $pass = $_POST['password']; $pass2 = $_POST['password2']; $zip = $_POST['zip']; $email = $_POST['email']; $min_lenngth = 6; function CheckMail($email){ if(eregi("@", $email)){ return true; }else { return false; } } function CheckZip($zip) { if (eregi("[0-9]", $zip)){ return true; }else{ return false; } } if (($pass)!=($pass2)){ echo "Passwords to not match!"; exit; }elseif((empty($email)) || (!CheckMail($email))){ echo "E-mail is not valid"; exit; }elseif((empty($zip)) || (!CheckZip($zip)) || (strlen($zip)!=5)){ echo "ZIP Code is not valid"; exit; }elseif(strlen($user) < $min_lenngth || strlen($pass) < $min_lenngth){ echo "Password and or username is too short"; exit; }else{ echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; }?>
  13. Try using this version <?php $url = 'http://www.yourdomain.com/accountok.php'; $user = $_POST['username']; $pass = $_POST['password']; $pass2 = $_POST['password2']; $zip = $_POST['zip']; $email = $_POST['email']; $min_lenngth = 6; function CheckMail($email){ if(eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\.[a-z]{2,4}$",$email)){ return true; }else { return false; } } function CheckZip($zip) { if (eregi("[0-9]", $zip)){ return true; }else{ return false; } } if (($pass)!=($pass2)){ header("Location: error-pwverify.php"); exit; }elseif((empty($email)) || (!CheckMail($email))){ header("Location: error-email.php"); exit; }elseif((empty($zip)) || (!CheckZip($zip)) || (strlen($zip)!=5)){ header("Location: error-zip.php"); exit; }elseif(strlen($user) < $min_lenngth || strlen($pass) < $min_lenngth){ header("Location: error-pwshort.php"); exit; }else{ echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">'; }?>
  14. Can you please provide a copy of the script so I can clean it up for you.
×
×
  • Create New...