Passing values from Form to Form to Email script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
nawthun
Forum Newbie
Posts: 3
Joined: Sat Apr 22, 2006 8:02 pm
Location: Potrerillos Arriba, Chiriqui, Rep de Panama

Passing values from Form to Form to Email script

Post by nawthun »

I am new to PhP and having some probs with my forms process.
I have
A. Form 1 - An inventory type form which calcuates totals
B. Form 2 - A pers info form where pers info is inputted (name, email, date, etc.) and the form 1 totals are posted.
C. Email script - Where all the values are passed for emailing to a pre-assigned email address.

My prob is I can get the values from Form 1 to Form 2, but I cannot figure out how to get the form 1 values(totals) to the Email script?

Does this make sense?
Can anyone help pls?
Tku
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

Try using sessions
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

Yeah sessions, or cookies, but sessions would be better, you could also just use the $_GET['variable'] instead of $_POST['variable']. You would just have to change your form from post to get
User avatar
nawthun
Forum Newbie
Posts: 3
Joined: Sat Apr 22, 2006 8:02 pm
Location: Potrerillos Arriba, Chiriqui, Rep de Panama

Post by nawthun »

Thanks vm for the info. I will work with sessions.
Post Reply