Skip to main content

Posts

Showing posts from December, 2016

Text slider with script style

<style> #carousel {   position: relative;   width: 100%;  margin-bottom: 30%;  margin-left: 0;   margin-right: 0;   background: #FFFFFF;   height: 155px; } #slides {   overflow: hidden;   position: relative;   width: 100%;   height: 250px;   margin-bottom: -70%; } #slides ul {   list-style: none;   width: 100%;   height: 250px;   margin: 0;   padding: 0;   position: relative; } #slides li {   width: 100%;   height: 250px;   float: left;   text-align: center;   position: relative;   font-family: lato, sans-serif; } #slides H1 {   font-size: 22px;   padding-top: 0px;   text-align: center;   font-weight: normal; } /* Styling for prev and next buttons */ .btn-bar {   width: 60%;   margin: 0 auto;   display: block;   position: relative;   top: 40px; } #buttons { ...

send email php code

<?php $name=$_POST['username']; $femail=$_POST['useremail']; $fpass=$_POST['password']; $phone=$_POST['usermobile']; $fmsg=$_POST['usermessage']; $to = "xyz@gmail.com"; $subject .= "This is subject"; $message = "User name=$name<BR/> <br/> User email=$femail<br/> <br/> User contact=$phone<br/> <br/> User message=$fmsg"; $header .= "From: abc@gmail.com\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo "Message sent successfully..."; header("Location: # "); } else { echo "Message could no...

Get IP address php

<? if (!empty($_SERVER['HTTP_CLIENT_IP'])) {     $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {     $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else {      $ip = $_SERVER['REMOTE_ADDR']; }  echo $ipp=$ip; ?>