get a $_POST value in a Function

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Wed Nov 09, 2011 5:24 am

$_POST, $_GET, $_SESSION, $_SERVER are "Super Globals"

Meaning, that they should work inside of functions. They do work, because I do it all of the time.


function Show_Me_The_Money() {
echo '<font style="font-size:24px; font-family:arial; font-weight:bold;">'.$_POST['show_me'].'</font>';
}

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest