Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Drop Down Executes Query On Post? Reply To: Drop Down Executes Query On Post?

#170632
MBM
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.