Skip to content

Instantly share code, notes, and snippets.

<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
$formcontent=" From: $name \n Phone: $phone \n message: $message \n";
$recipient = "[email protected]";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
package com.dignitasdigital.location;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
{"featured":[{"id":"56bdda508d1e690460d3731b","name":"Cafe Coffee Day","phone":"81289282189","description":"Caf\u00e9 Coffee Day is a coffee shop for the young and the young at heart. We're part of Coffee Day Global Limited. We source our coffees from thousands of small coffee planters. They and the many plantation workers have truly made us who we are today and we're glad to be a part of their lives.","location":"Aurobindo Market, Sri Aurobindo Marg, Bhim Nagri, New Delhi, Delhi, India","disc_amt":null,"min_order":null,"discount":null,"tnc":null,"distance":"","logo":"http:\/\/52.34.185.4\/mozipper\/uploads\/","slider":"http:\/\/52.34.185.4\/mozipper\/slider\/coffee.png","food_type":"Cafe","timings":"9 A.M. to 9 P.M.","food_cost":"Rs 200 for two (approx)","payment_mode":null},{"id":"56bddea68d1e69295fd3731e","name":"Da' Pizza Planet","phone":"80112383233","description":"Da\u2019 Pizza Planet aspires to create a high end fine dining experience with a wondrous ambiance. The food served at Da\u2019 Pizza Planet
{
"featured": [{
"Pid": "1",
"Pname": "Addidas Shoes",
"PDescriprion": " Adidas YKING M Running Shoes",
"location": "Available at counter no. 7",
"disc_amt": 500,
"distance": "30om from your current position",
"slider": "https://scontent-sit4-1.xx.fbcdn.net/hphotos-xtp1/v/t1.0-9/12814582_1104674876249671_3562966571762615154_n.jpg?oh=267f1bf72535c09be2da8aa4df12ced2&oe=574F33DD",
"payment_mode": "credit card"
package com.example.sakshi.offlinesecuritypage1;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
[
{
"id": 0,
"name": "Mcleodganj, Himachal Pradesh",
"image": "http://www.holidify.com/images/tooltipImages/MCLEODGANJ.jpg",
"longitude": 76.3067954,
"latitude": 32.2616629,
"distance": 491,
"drivingTime": 537,
"rating": 4.392,
[{
"id": 0,
"name": "Goa",
"image": "http://www.holidify.com/images/tooltipImages/GOA.jpg",
"longitude": 73.8278,
"latitude": 15.4989,
"distance": 560,
"drivingTime": 527,
"rating": 4.75,
"popularity": 245,
[{
"id": 1,
"name": "Madhyamaheshwar, Uttarakhand",
"image": "http://www.holidify.com/images/tooltipImages/MADHYAMAHESHWAR.jpg",
"longitude": 79.212606,
"latitude": 30.628385,
"distance": 637,
"drivingTime": 956,
"rating": 3.175,
"popularity": 80,
[{
"id": 0,
"name": "Goa",
"image": "http://www.holidify.com/images/tooltipImages/GOA.jpg",
"longitude": 73.8278,
"latitude": 15.4989,
"distance": 591,
"drivingTime": 635,
"rating": 4.75,
"popularity": 245,