Jump to content

How would I do this.


onlyican

Recommended Posts

Here is the current situation.

 

I have a FloorPlan, which is generated by the Database, which allows users to book seats for a performance.

As you can imagine, there is several steps to booking seats, one steps being the Floorplan to Select the Seat.

 

Now this works great, BUT if the floorplan is more than X columns then it messes up the website layout.

So I am making the floorplan a Pop Up IF too wide.

 

My problem

 

So My problem is, How would I tell the original page what seats the user booked on the pop up, which are stored in hidden fields?

Link to comment
https://forums.phpfreaks.com/topic/44456-how-would-i-do-this/
Share on other sites

Yes, but I think you mis understand.

 

I have the page

Which has a link or button or something, which will open a Pop Up Window

This Window holds a Floorplan only

When they selected the Seats, I want them to go back to the website.

So close the window

But the Seats they booked are in a hidden field in the pop up, and I want this in the main form.

How could I do this.

Link to comment
https://forums.phpfreaks.com/topic/44456-how-would-i-do-this/#findComment-215904
Share on other sites

NO

 

Ok, forget the seating plan, think of this

 

I currently have several forms

Form A

Choose Date, On Submit, Goes to Form B

Form B,

Choose Seats, On Submit, Goes To Form C

Form C,

SHows Invoice, Goes to Payment

 

Form B Might be a pop up

On the Pop Up, There is a textbox

The user types something in the textbox, and submits the form, which in return will close the window.

 

Is there a way I can find out what was typed in that textbox

Either a way to Post Back to Main Page

or something like that.

 

I personally dont think it can be done, well, not in PHP, but someone else said it can.

Link to comment
https://forums.phpfreaks.com/topic/44456-how-would-i-do-this/#findComment-215952
Share on other sites

Well.. You might encounter some problems in the form action..

 

Could it be a new window instead? You could always do:

 

echo "<form action=\"anotherpage.php\" method=\"POST\">";
  echo "<input name=\"input\" type=\"text\" maxlength=\"20\" />";
    echo "<input type=\"submit\" value=\"Submit The Stuff\" />";
echo "</form>";

 

You'd also have to fit a target=\"_blank\" in there somewhere for a new window.

Link to comment
https://forums.phpfreaks.com/topic/44456-how-would-i-do-this/#findComment-215960
Share on other sites

ok ok, either I aint explaining right, or you aint reading.

 

I AM NOT HAVING A PROBLEM GETTING THE POP UP FORM.

 

It is getting the data from the pop up form in the original website.

 

Example time I think

 

go to

http://www.onlyican.com/test/form_example.php

There is a textfield

Type something in that

Hit Submit

 

Then you go to a page with a link

Click the Link

A Pop up will show

 

This will show you what you types in the first form

And another text field

Then when you submit the 2nd form, a link will come to close the window

 

Then on the main page again, click the button under the link

 

to go to the 3rd main page

Which shows what you types in the first form

I also want to know what you typed in the pop up form

How do I transfer the Data from what you typed in the pop up form to the main site again.

 

 

Link to comment
https://forums.phpfreaks.com/topic/44456-how-would-i-do-this/#findComment-215983
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.