Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
| Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2005, 10:51 AM
Friend of Wrox
 
Join Date: Dec 2004
Location: London, London, United Kingdom.
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing variables' data

Hi,
Something really weird is happening on 1 of my php.
The file is pretty massif but it's basically 1 big "Form"

<?php
session_start();
?>
.
.
<form name=myForm method="POST" action="recoverdata.php"><p>
.
.
<input type="submit" value="Search" name="B1"></p>
</form>

When I "try" to get the data in recoverdata.php there's nothing..
But if I click refresh, they are there ??

recoverdata:
<?php
session_start();
$_SESSION['Data1']=$_POST['MB'];
$_SESSION['Data2']=$_POST['SB'];
echo $Data1;
echo "<p>";
echo $Data2;
echo "<p>";
?>

Help ??
 
Old February 3rd, 2005, 11:07 AM
Friend of Wrox
 
Join Date: Dec 2004
Location: London, London, United Kingdom.
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok.. got it --
Should have been
echo $_SESSION['Data1']; and not echo $data1;

Working fine now!




Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports missing part of data JMCHAP1 Crystal Reports 1 August 7th, 2006 09:41 AM
Importing from excel with missing data Lizu SQL Server DTS 4 September 21st, 2004 07:02 AM
data missing from report drudo1 BOOK: Professional Crystal Reports for VS.NET 0 August 18th, 2004 08:04 AM
Missing Data in Access? daxers Access ASP 1 June 14th, 2004 02:27 AM
Missing Form Data BSkelding ASP.NET 1.0 and 1.1 Basics 1 April 26th, 2004 03:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.