Salim
09-17-2019, 09:29 AM
What is required to work PHP post form method?
I am new to php so help me to make it work. Required action completed by opening the ready.php file but entered form data is not displaying in ready.php file.
i AM USING THIS CODE in index.php for form.
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<title>Wishing you HAPPY Friendship day.</title>
<meta name="google" value="notranslate">
<meta property="og:type" content="Make your own HAPPY Friendship day wish">
<meta property="og:title" content="Make your own HAPPY Friendship day wish">
<meta property="og:url" content="index.html">
<meta property=" og:description" content="CLICK HERE">
<meta property="og:site_name" content="Wishing you HAPPY Friendship day">
<meta property="og:image" content="files/2018.jpg">
<link type="text/css" rel="stylesheet" href="files/animate.min.css">
<link rel="stylesheet" type="text/css" href="files/new.css">
<link rel="stylesheet" type="text/css" href="files/style.css">
</head>
<body bgcolor="#04ac9f">
<marquee class="m1" behavior="scroll" direction="up" scrolldelay="5"> <br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<marquee class="m2" behavior="scroll" direction="up" scrolldelay="5"><br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<div class="container">
<div class="main-greeting">
<div align="center html2canvas-ignore">
<div style="font-size: 17px; font-weight: 800; color: yellow; ">
<div class="main_body">
<figure>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:white;" class="naming">[Your Name]</h1>
</figure>
<div class="vi" style="text-align: center;">
<img src="files/Snow_falling1.gif" class="swing1" alt="diwali" style="width: 100%; height:100px;">
<b style="font-family: 'Kanit', sans-serif; color:#02a998;">Wish You</b><br>
<h2> <img src="files/happy.jpg" class="img-responsive" alt="NEW YEAR" style="width: 100%;">
</h2>
</div>
</div>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:150%;">Walking with a friend in the dark is better than walking alone in the light.</b><br>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:100%;">Helen Keller</b><br>
<div style="font-family: 'Kanit', sans-serif; color:#04ac9f;" class="busi">😇[Your Name]😇<br>
</div>
</div>
</div>
<form method="post" action="/ready.php">
<div class="enter-name">
<input class="animated pulse infinite" type="name" required="" maxlength="50" name="n" placeholder="👉 Enter Your Name Here...">
<button class="btn animated shake infinite" type="submit"><span>👉</span> Go</button>
</div>
</form>
</body>
</html>
code for ready.php
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<title>fe Wishing you HAPPY Friendship day.</title>
<meta name="google" value="notranslate">
<meta property="og:type" content="Make your own HAPPY Friendship day wish">
<meta property="og:title" content="fe Wishing you HAPPY Friendship day.">
<meta property=" og:description" content="CLICK HERE">
<meta property="og:site_name" content="Make your own HAPPY Friendship day wish">
<link rel="stylesheet" type="text/css" href="./files/new.css">
<link rel="stylesheet" type="text/css" href="./files/style.css">
<link href="https://fonts.googleapis.com/css?family=Kanit" rel="stylesheet">
</head>
<body bgcolor="#04ac9f">
<marquee class="m1" behavior="scroll" direction="up" scrolldelay="5"> <br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<marquee class="m2" behavior="scroll" direction="up" scrolldelay="5"><br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<div class="container">
<div class="main-greeting">
<div align="center html2canvas-ignore">
<div style="font-size: 17px; font-weight: 800; color: yellow; ">
<div class="main_body">
<figure>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:white;" class="naming">fe</h1>
</figure>
<div class="vi" style="text-align: center;">
<img src="./files/Snow_falling1.gif" class="swing1" alt="diwali" style="width: 100%; height:100px;">
<b style="font-family: 'Kanit', sans-serif; color:#02a998;">Wish You</b><br>
<h2> <img src="./files/happy.jpg" class="img-responsive" alt="NEW YEAR" style="width: 100%;">
</h2>
</div>
</div>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:150%;">Walking with a friend in the dark is better than walking alone in the light.</b><br>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:100%;">Helen Keller</b><br>
<div style="font-family: 'Kanit', sans-serif; color:#04ac9f;" class="busi">😇[Your Name]😇<br>
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7735759473986562" data-ad-slot="4557014965" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>
</div>
</div>
</div>
</div>
<center>
<a class="footerbtn" href="whatsapp://send?text=😇 fe 😇 sent you A Gift for Friendship Day %0A1. Touch this blue line %0A2. Enter your name %0A 👉 /s.php?n=fe"><img width="25px" height="25px" src="./files/wtsp.svg"><b style="font-size: 15px;"> Click Here to Share on Whatsapp</b> <img width="25px" height="25px" src="./files/wtsp.svg"></a></center>
</body></html>
I am not getting what the problem with that.
I am new to php so help me to make it work. Required action completed by opening the ready.php file but entered form data is not displaying in ready.php file.
i AM USING THIS CODE in index.php for form.
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<title>Wishing you HAPPY Friendship day.</title>
<meta name="google" value="notranslate">
<meta property="og:type" content="Make your own HAPPY Friendship day wish">
<meta property="og:title" content="Make your own HAPPY Friendship day wish">
<meta property="og:url" content="index.html">
<meta property=" og:description" content="CLICK HERE">
<meta property="og:site_name" content="Wishing you HAPPY Friendship day">
<meta property="og:image" content="files/2018.jpg">
<link type="text/css" rel="stylesheet" href="files/animate.min.css">
<link rel="stylesheet" type="text/css" href="files/new.css">
<link rel="stylesheet" type="text/css" href="files/style.css">
</head>
<body bgcolor="#04ac9f">
<marquee class="m1" behavior="scroll" direction="up" scrolldelay="5"> <br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<marquee class="m2" behavior="scroll" direction="up" scrolldelay="5"><br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<div class="container">
<div class="main-greeting">
<div align="center html2canvas-ignore">
<div style="font-size: 17px; font-weight: 800; color: yellow; ">
<div class="main_body">
<figure>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">[Your Name]</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:white;" class="naming">[Your Name]</h1>
</figure>
<div class="vi" style="text-align: center;">
<img src="files/Snow_falling1.gif" class="swing1" alt="diwali" style="width: 100%; height:100px;">
<b style="font-family: 'Kanit', sans-serif; color:#02a998;">Wish You</b><br>
<h2> <img src="files/happy.jpg" class="img-responsive" alt="NEW YEAR" style="width: 100%;">
</h2>
</div>
</div>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:150%;">Walking with a friend in the dark is better than walking alone in the light.</b><br>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:100%;">Helen Keller</b><br>
<div style="font-family: 'Kanit', sans-serif; color:#04ac9f;" class="busi">😇[Your Name]😇<br>
</div>
</div>
</div>
<form method="post" action="/ready.php">
<div class="enter-name">
<input class="animated pulse infinite" type="name" required="" maxlength="50" name="n" placeholder="👉 Enter Your Name Here...">
<button class="btn animated shake infinite" type="submit"><span>👉</span> Go</button>
</div>
</form>
</body>
</html>
code for ready.php
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<title>fe Wishing you HAPPY Friendship day.</title>
<meta name="google" value="notranslate">
<meta property="og:type" content="Make your own HAPPY Friendship day wish">
<meta property="og:title" content="fe Wishing you HAPPY Friendship day.">
<meta property=" og:description" content="CLICK HERE">
<meta property="og:site_name" content="Make your own HAPPY Friendship day wish">
<link rel="stylesheet" type="text/css" href="./files/new.css">
<link rel="stylesheet" type="text/css" href="./files/style.css">
<link href="https://fonts.googleapis.com/css?family=Kanit" rel="stylesheet">
</head>
<body bgcolor="#04ac9f">
<marquee class="m1" behavior="scroll" direction="up" scrolldelay="5"> <br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<marquee class="m2" behavior="scroll" direction="up" scrolldelay="5"><br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
😇<br>
</marquee>
<div class="container">
<div class="main-greeting">
<div align="center html2canvas-ignore">
<div style="font-size: 17px; font-weight: 800; color: yellow; ">
<div class="main_body">
<figure>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:#02a998;" class="naming">fe</h1>
<h1 style="font-family: 'Kanit', sans-serif; color:white;" class="naming">fe</h1>
</figure>
<div class="vi" style="text-align: center;">
<img src="./files/Snow_falling1.gif" class="swing1" alt="diwali" style="width: 100%; height:100px;">
<b style="font-family: 'Kanit', sans-serif; color:#02a998;">Wish You</b><br>
<h2> <img src="./files/happy.jpg" class="img-responsive" alt="NEW YEAR" style="width: 100%;">
</h2>
</div>
</div>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:150%;">Walking with a friend in the dark is better than walking alone in the light.</b><br>
<b style="font-family: 'Kanit', sans-serif; color:#02a998; font-size:100%;">Helen Keller</b><br>
<div style="font-family: 'Kanit', sans-serif; color:#04ac9f;" class="busi">😇[Your Name]😇<br>
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7735759473986562" data-ad-slot="4557014965" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>
</div>
</div>
</div>
</div>
<center>
<a class="footerbtn" href="whatsapp://send?text=😇 fe 😇 sent you A Gift for Friendship Day %0A1. Touch this blue line %0A2. Enter your name %0A 👉 /s.php?n=fe"><img width="25px" height="25px" src="./files/wtsp.svg"><b style="font-size: 15px;"> Click Here to Share on Whatsapp</b> <img width="25px" height="25px" src="./files/wtsp.svg"></a></center>
</body></html>
I am not getting what the problem with that.