Jump to content

codephp

New Members
  • Posts

    5
  • Joined

  • Last visited

codephp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. After checking preview my site, initially it showing that screen shot.... printing missing information .... may i know what's wrong. how do i validate required fields?
  2. please check screen shot.... for error <div> <?php require_once("sendcontact.php"); $obj = new insertcontact(); $result = $obj->recordcontact(); ?> <?echo "<center>".$result."</center><br><br>"; ?> <form action="" method="post"> <table> <th><center> Please fill the form : </center></th> <tr> <td>Name :</td> <td><input type="text" name="fullname" placeholder="Type your full name"></td> </tr> <tr> <td>email :</td> <td><input type="email" name="email" placeholder="ex: [email protected]"></td> </tr> <tr> <td>Type of contact :</td> <td><input type="checkbox" name="checkbox" value="Report" >Report <br> <input type="checkbox" name="checkbox" value="Feedback" >Feedback <br> <input type="checkbox" name="checkbox" value="Suggestions" >Suggestions <br> </td> </tr> <tr> <td>Message:</td> <td><textarea name="message" style="max-width:500px;" cols="60" rows="10" placeholder="Type message here"></textarea></td> </tr> </table> <input type="submit"> </form> </div> contact.php <?php include('dbconnect.php'); class insertcontact{ public function recordcontact(){ // function for inserting videos $Name = $_POST["fullname"]; $email = $_POST["email"]; $message = $_POST["message"]; $type = $_POST["checkbox"]; $date = new DateTime(); $contactdate = $date-> format('Y-m-d H:i:s'); if(empty($Name) || empty($email) || empty($message) || empty($type)){ return $result = "Missing information....!"; }else{ $strSQL = " INSERT INTO Contact (Name, email, message, contact_type, date ) VALUES ('".$Name."','".$email."','".$message."','".$type."','".$contactdate."')" ; try{ mysql_query($strSQL); $message = "Thank you for submitting."; return $message ; clearstatcache(); exit(); } catch(CustomException $e){ throw new Exception( 'Something really gone wrong', 0, $e); exit(); } } } } ?>
  3. <form action="Videos.php" method="post" enctype="multipart/form-data" autocomplete="off"> <table> <tr> <td>Title: </td> <td><input type="text" name="Title"></td> </tr> <tr> <td>Category: </td> <td><?php Getcategory_Dropdown(); ?></td> </tr> <tr> <td>Video Embedded Code: </td> <td><textarea name="Video_code" style="max-width:500px;" cols="60" rows="10"></textarea></td> </tr> <td><input type="submit"> </td> </tr> </table> </form>
  4. Thanks in advance... My achievement is when i post embed code into database using php at the same time i should get image from that relative embed code and store in same table (blob type) or in folder. i googled but i found like 1. how to get from you tube 2. by uploading video and using ffmepg. is there any way.... to that...
  5. Hello Masters, really i need help. i am working on one php site. i have no idea how to make thumbnails from embed code where we can get from other sites. will you please help me in detail
×
×
  • 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.