Page 1 of 1

XAMPP query

Posted: Thu Dec 10, 2009 3:05 pm
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

Re: XAMPP query

Posted: Thu Dec 10, 2009 10:57 pm
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!" />