How to Remove YouTube Player Controls and Title?


Step 1
Visit YouTube and copy the embed code from the video you wish to add to your website.
Step 2
Paste the embed code into your webpage and look for the video file URL within the code.   This will in 2 places withing the code.   See picture below for an example of this.  URL will be in this format: http://www.youtube.com/v/XXXXXXX  – “XXXXXX” is the video ID
Step 3
Paste the follow bit of code directly after the ? in both places modestbranding=1;autohide=1&showinfo=0&controls=0;

How to autoplay youtube video?

How do I make a YouTube video autoplay?

1. On YouTube, open the video you wish to embed.
2. Click Share, then Embed.
1434-youtube-share.png
3. Choose your settings, then Copy the HTML code.
4. In your Bigcommerce control panel, open the page, product, or category you'd like to add the video to.
5. In the editor, click HTML (2012-05-07_1120.png) in the WYSIWYG editor.
1434-wysiwyg-html.png
6. Paste the code, and then add ?rel=0&autoplay=1 to the code as shown below.
Before:
<iframe width="420" height="315" src="[YouTube Video URL]" frameborder="0" allowfullscreen></iframe>
After:
<iframe width="420" height="315" src="[YouTube Video URL]?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
7. Select Update.
2012-05-07_1122.png
8. Save the page, product, or category.
1434-save.png

How to use php mailer function?

/*---------- Validation Script ---------------*/

<script>
function validateForm()
{

var x=document.forms["myForm"]["name"].value;
if (x==null || x=="")
  {
  alert("Name must be filled out");
  return false;
  }

var y=document.forms["myForm"]["contact"].value;
if (y==null || y=="")
  {
  alert("Contact must be filled out");
  return false;
  }

var z=document.forms["myForm"]["address"].value;
if (z==null || z=="")
  {
  alert("Address must be filled out");
  return false;
  }

var m=document.forms["myForm"]["msg"].value;
if (m==null || m=="")
  {
  alert("What is your message? Please write in message field.");
  return false;
  }


var e=document.forms["myForm"]["email"].value;
var atpos=e.indexOf("@");
var dotpos=e.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=e.length)
  {
  alert("Not a valid e-mail address");
  return false;
  }
}
</script>


/*------------- Php Coding ------------------*/


<?php

if (isset($_GET['submit'])){

/* Set e-mail recipient */
$myemail = "RECIPIENT EMAIL ADDRESS";
$name = $_GET['name'];
$ct = $_GET['contact'];
$ad = $_GET['address'];
$email = $_GET['email'];
$msg = $_GET['msg'];
$from = '$name';

/* Let's prepare the message for the e-mail */

$message = "

Name: $name

Email: $email

Contact: $ct

Address: $ad

Message: $msg

";

/* Send the message using mail() function */
$m = mail($myemail,"$name", $message) or die("failed");
if ($m)
{
echo "Message Sent Successfully";
 }
else
{
echo "Message Failed";
}
}
?>


/*--------------- Html Coding ------------------------*/


<form name="myForm" method="get" action="" onsubmit="return validateForm();">
<table>
<tr><td><h5>Name</h5></td><td><input type="text" name="name"/></td></tr>
<tr><td><h5>Email</h5></td><td><input type="text" name="email"/></td></tr>
<tr><td><h5>Phone</h5></td><td><input type="text" name="contact"/></td></tr>
<tr><td><h5>Address</h5></td><td><input type="text" name="address"/></td></tr>
<tr><td valign="top"><h5>Message</h5></td><td><textarea name="msg" cols="30" rows="10"/></textarea></td></tr>
<tr><td></td><td><input type="submit"  name="submit" /></td></tr>
</table>
</form>



Paste this code in your contact.php page and replace the word "RECIPIENT EMAIL ADDRESS"   with your email address where to receive email....