Forum Moderators: coopster

Message Too Old, No Replies

Form action

Submitting values for calculation

         

Saint Honore

6:56 am on Aug 31, 2006 (gmt 0)

10+ Year Member



Hello there,

I have page called contracts.php form for selecting arrival date and departure date, after selecting those dates I want to pass the date values to a new window/iframe called price.php where I can enter total price, balance, numdays..etc in that iframe again when I click on submit/close button in the new window/iframe it has to come back to contracts.php page with those entered values...

Any Help would be really helpful..

Warm Regards
Imran

henry0

11:33 am on Aug 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use sessions
however using session in frames requires the correct syntax

I got that example a while ago but can't remember where the credit should go

<<<
<FRAMESET COLS="73,*">
<FRAME SRC="sidebar.html" NAME="sidebar">
<FRAME SRC="main.php<? echo "?var1=$sessionvar1"?>" NAME="main">
</FRAMESET>

and it will be available to main.php as $var1 and $HTTP_GET_VARS['var1']

>>>

Saint Honore

2:52 pm on Aug 31, 2006 (gmt 0)

10+ Year Member



Hello Henry,

Thanks for the promt reply.

The form contains firstname, lastname arrival date and departure date. when i enter those above information it should give me an option a new window where i can enter the amount, discount and balance however the firstname. lastname....etc filed values should remain on the same page.
When i enter teh amount, balance etc and click on submit in new window those values should agian pass back to the old page in a variables or in a new textbox.
I hope i have explained well about the situation.

Warm Regards

henry0

4:57 pm on Aug 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



At this point are the sessions started?
Do you need a session "How to"?

Saint Honore

5:05 am on Sep 1, 2006 (gmt 0)

10+ Year Member



Hello The session is already started.
Anyway I have decided to submit the form action to a new page by redirecting the form.

Thanks for your Precious time.

Regards