Jump to content

laurentiumarian

Members
  • Posts

    3
  • Joined

  • Last visited

About laurentiumarian

  • Birthday 03/18/1982

Previous Fields

  • Languages
    English, Romanian

Contact Methods

  • Website URL
    http://know.info

Profile Information

  • Location
    Pitesti city - Romania
  • Interests
    SEO, Content Writing, Copywriting, Translating

laurentiumarian's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I have this: <!DOCTYPE html> <html> <head> <style type="text/css"> body {background-color:#ebff33; background-image:url(logo.jpg); background-repeat:no-repeat; background-position:950px 1270px;} p { color: #BD0102;font-family:arial;line-height:190%;text-align:center;} h1 {color: #5F6024;font-family:arial;text-align:center; background-color:white;padding:60 px;} a {font-family:arial;font-weight:bold;text-decoration:none;} a:active {background-color:white; font-size: 25px;} span {font-weight:bold; color:brown;} <title> Nknow.info. Joburi online.Eseuri, traduceri, lucrari de licenta si tot ce ai nevoie la liceu si facultate. Afla locurile unde sunt cele mai tari petreceri in orasul tau. </title> </style> </head> <body> <form action="dosomething" method="post"> <img src="Nknow.png"/> <form> Spune cine esti si ###### vrei sa fie iubitul/iubita ta: <br> <textarea name="bio" rows="30" cols="130"> Scrie aici mesajul tau </textarea> <input type="Submit" value="Submit!"> <br> <br> <p>Acum upladeaza fisierul dorit</p> <input type="file" name="FisierInNknow"/> <br> <br> </form> <!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-54ba8f1628d8bd6e" async="async"></script> <br> <br> <p>Te aflii aici pentru ca doresti sa iti gasesti pe cineva care sa iti fie alaturi</p> <br> <br> <br> </body> </html> What to do to add FB, g+ and Twitter buttons and to work the messaging uploading parts? Thank you
  2. I have a problem with the script that should upload and submit files: the script allows to choose a file but does not submit it. what is the issue? thank you. <?php $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["fileToUpload"]["tmp_name"]); if($check !== false) { echo "File is an image - " . $check["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "Sorry, file already exists."; $uploadOk = 0; } // Check file size if ($_FILES["fileToUpload"]["size"] > 500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded."; } else { echo "Sorry, there was an error uploading your file."; } } ?>
×
×
  • Create New...