Home › Forums › Back End › Drop Down Executes Query On Post? › Reply To: Drop Down Executes Query On Post?
May 19, 2014 at 6:33 pm
#170632
Participant
Sorry no I don’t mean nothing is displayed I mean the page just refreshes with the container, nav elements, dropdown and submit button but it doesn’t fetch the data.
I thought post would execute the query??!?!? There are no errors in the code, error reporting is on.
I have changed the while loop to store values as arrays.
The opening declerations :
<?php
session_start();
include "connect.php";
$message = $_GET['message'];
$formValue=array();
foreach ($_POST as $key => $value) {
$formValue[$key] = strip_tags($value);
$usercomments = nl2br($_POST['usercomments']);
$_SESSION['post_vars'][$key] = $value;
}
?>
That’s all the php. The other HTML isn’t related to the form.