Click here to Skip to main content
15,664,272 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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[^].
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900