Ad block is installed and active. Please support us by disabling it.
HomeSaturday, January 20, 2018, 16:44:40
2

PHP $_POST Function

Tuesday, February 10, 15, 01:12:44, 3 Yaers Ago Via wain, Hits: 3304
Collect values from a form sent with method post
index.php

Code:
<form action="post.php" method="post">
<input type="text" name="link"><br>
<input type="text" name="category"><br>
<input type="submit" value="Submit">


post.php

Code:
<?php
$link = $_POST["link"];
$category = $_POST["category"];
echo $link;
echo '<br />';
echo $category;
?>

Sign In

Sponsor

Related

PHP Cookies and Sessions Tutorial

PHP Cookies and Sessions Tutorials

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Link Generator PHP Script

This script will allow your visitors to create links online.To use the "link generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.

Upload File with PHP

Basic file uploading with PHP

PHP imagecreate

imagecreate() returns an image identifier representing a blank image of specified size.

Comments 1.1. :: PHP Script

This script allows your visitors to add comments to any single page on your web site.

PHP highlight_string - PHP Tutorial

Outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. Requirement(s): PHP Server.

MySQL Tutorials

MySQL tutorials, MySQL training, learn MySQL, MySQL Tutorial with practical examples.

Creating a CAPTCHA with PHP :: PHP Tutorial

Captcha Image, This tutorial will show you how to create a form with Captcha.

View content in a zip file with PHP

List all files in a zip archive with PHP
About Author

cilipe

Date Registered: Mon, Feb 16, 15
Last Time Online: Wed, Feb 18, 15
So far has created 2 entries.
cilipe
This author has not yet filled in any details.