Click here to Skip to main content
14,297,566 members
Rate this:
Please Sign up or sign in to vote.
See more:
With ?php echo $editFormAction/ $_SERVER['PHP_SELF'] as form action, how can I access
the data entered in a form textbox but that has not been submitted into mysql database from another child window. Thank you

What I have tried:

I have tried Class of Room: <?php echo $_POST['Class_of_Room']; ?>

Room Number: <?php echo ($_POST['Room_Number']); ?>

Customer Name: <?php echo ($_POST['Customer_Name']); ?>

Customer Address: <?php echo ($_POST['Customer_Address']); ?>

Phone number: <?php echo ($_POST['Phone_number']); ?>

Occupation: <?php echo ($_POST['Occupation']); ?>

Amount: <?php echo($_POST['Amount']); ?>.

Check in Time: <?php echo($_POST['Check_in_Time']); ?>

Date: <?php echo ($_POST['Date']); ?>.

Duration: <?php echo ($_POST['Duration']); ?>

Name of Receptionist: <?php echo ($_POST['Name_of_Receptionist']); ?
Updated 29-Apr-18 22:29pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You already posted this question at How to access text data from parent form to child form Using $_SERVER['PHP_SELF'] - Linux, Apache, MySQL, PHP Discussion Boards[^]. Please post in one forum only.

You should also check out PHP: Documentation[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100