XAMPP query

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
code_worm
Forum Newbie
Posts: 19
Joined: Thu Dec 10, 2009 3:00 pm

XAMPP query

Post by code_worm »

Hi guys
I have recently started learning PHP and have downloaded XAMPP.
I have been testing my work by amendingf the default index which is ran locally
What i want to do is run my HTML file which is a form that passes my PHP file a value through the post method and be able to check if the value i am posting is correct..

Is there anyway i can get my PHP file to show through the server when i press the submit button in the form
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: XAMPP query

Post by JAB Creations »

Show all POST data

Code: Select all

<?php
print_r($_POST);
?>

Access specific post data

Code: Select all

<?php
echo $_POST['my_form_name_value_here'];
?>
The second one assumes you're trying to see what was in the following input element...

Code: Select all

<input name="my_form_name_value_here" type="text" value="Hi Mom!" />
Post Reply