Sridhar_Rao
In the zone
Hello,
I had created a html page with form in it. I submit the page to say result.php
<form name="poll" action="result.php" method="post" >
For some reasons, nothing was showing up in result.php page. I have checked and confirmed that the form is submitting correct values as they were delivered to my email. The values were not being received well the php page. I found this script in the net which is supposed to help see if the form submission works correctly or not. I changed the line to:
<form name="poll" action="x.php" method="post" >
Here is the content of page x.php
The page calling this www.microrao.com/opinion.htm. The page gets redirected to x.php but nothing shows up. While google chorme throws up totally blank page, Firefox shows the php script partially.
Please look into this and let me know what the problem is.
I had created a html page with form in it. I submit the page to say result.php
<form name="poll" action="result.php" method="post" >
For some reasons, nothing was showing up in result.php page. I have checked and confirmed that the form is submitting correct values as they were delivered to my email. The values were not being received well the php page. I found this script in the net which is supposed to help see if the form submission works correctly or not. I changed the line to:
<form name="poll" action="x.php" method="post" >
Here is the content of page x.php
PHP:
<?
session_start();
echo "<b>PHP Errors:</b><br><br>";// Displays general PHP errors.
error_reporting(E_ALL);
echo "<br><br>**********<br><br>";// This section is for checking Session Vars.
echo "<b>Session Values:</b> <pre>";
print_r($_SESSION);
echo "</pre>";
echo "<br><br>**********<br><br>";// This section is for checking form submissions.
echo "<b>Post Values:</b><br><br>";
while(list($key,$value) = each($HTTP_POST_VARS)) {
if(is_array($value)) {
while(list($key2,$value2)=each($value)) {
echo "array $key: $key2 -> $value2";
echo "<br>";
}
} else {
echo "$key -> $value";
echo "<br>";
}
}
?>
Please look into this and let me know what the problem is.