$_GET form values hiding?
Posted: Thu Apr 17, 2008 7:02 am
Hi Please help I can't seem to figure out why the following result outputs from the following code extract
Output is as follows
Before submitting Form:
What I can't quite figure is why '1000.00' is not output at the front of the Form output shown here when the $_GET array appears to have values as spat out by the print-r command. Incidentally also the Form is submitting to itself (via <Form action ="" method="GET">)
Code: Select all
<?php
$input = $_GET['by_price_higher'];
echo $input;
echo"<PRE>";
print_r($_GET);
echo"</PRE>";
?>
Before submitting Form:
- Array
(
[a] => 19
)
- Array
(
[c] => 219
=> Array
(
[subcategories_also] => 1
[optional_field_1] => 0
[classified_auction_search] => 0
[search_text] =>
[search_titles] => 1
[whole_word] => 0
[by_zip_code] =>
[by_zip_code_distance] => 0
[by_price_higher] => 1000.00
[search] => Search
[question_value] => Array
(
[190] =>
)
)
[a] => 19
[change] => 0
)
What I can't quite figure is why '1000.00' is not output at the front of the Form output shown here when the $_GET array appears to have values as spat out by the print-r command. Incidentally also the Form is submitting to itself (via <Form action ="" method="GET">)