Tags » Php

What is the use of PHP_SELF and HTTP_REFERER?

<?php
$a=$_SERVER[‘PHP_SELF’]; ?>
PHP_SELF is a variable that returns the current script being executed. This variable returns the name and path of the current file (from the root folder). 142 more words

PHP

The throughts about WordPress Forms

After a lot of time trying to work with all of WordPress plugins with forms I always think what this solutions is not good at all. 604 more words

Coding

PHP code for making selected tab active in navigation

<ul class=”nav navbar-nav”>

<?php $p=$_SERVER[‘PHP_SELF’]; //PHP_SELF gives the URL of the current page ?>

<li class=”nav-item <?php if($p==”http://sitename.com/&#8221;) { echo ‘active’; } ?>”> <a class=”nav-link navi” href=”index”>HOME</a> </li> 122 more words

PHP

simple contact us form

<?php
if(@$_POST[‘name’] !=””)
{

$name=$_POST[‘name’];
$email=$_POST[’email’];
$subject=$_POST[‘subject’];
$mes=$_POST[‘message’];
$to = “abcdefghg@gmail.com”;
$subject = “contact us”;

$message = “Name:”.$name.”<br>Email:”.$email.”<br>Subject:”.$subject.”<br>Message:”.$mes.”<br>”;

$header = “From:www.sitename.com \r\n”;

$header .= “MIME-Version: 1.0\r\n”; 186 more words

PHP

SynapseIndia Technologies & Services – Drupal Development

SynapseIndia technologies like Drupal help us delivering out-of-the-box and innovative solutions for our clients. Founded by Shamit Khemka, SynapseIndia offers full-range of Drupal development services to customers across the globe. 52 more words