The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> session variable, sending session variable to another page
Sage
post Oct 17 2006, 11:31 AM
Post #1





Group: Members
Posts: 1
Joined: 17-October 06
Member No.: 471



I have a simple page ad with one textfield and a button I made.

I would like input a promotional code to the textfield and execute my own made button and bring up
the contact form and the send promocode variable and form infomation to be save on a database

both forms are in html and then processed by php to the db

initial form: http:\\www.eatandwin.info/index.html


second form: http://www.eatandwin.info/phpform/use/fall2006/form1.html


www.eatandwin.info/phpform/use/fall2006/process.php processes a thank you form
www.eatandwin.info/phpform/user/fall2006/global.inc.php dont know what that does

Please help sage
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Oct 17 2006, 12:01 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE(Sage @ Oct 17 2006, 09:31 AM) *
I would like input a promotional code to the textfield and execute my own made button
Please see the FAQ entry How can I make a form with custom buttons?

QUOTE(Sage @ Oct 17 2006, 09:31 AM) *
and bring up the contact form and the send promocode variable and form infomation to be save on a database
You'll need a server-side (e.g., PHP) program to process the promo-code form data and send the contact form data. You can put the promo-code in a hidden field of the contact form. Another option is to use cookies, but not all browsers will accept them.

QUOTE(Sage @ Oct 17 2006, 09:31 AM) *
initial form: http:\\www.eatandwin.info/index.html
That should be http://www.eatandwin.info/index.html (or just http://www.eatandwin.info/ )

FWIW, when I clicked the "SUBMIT" button, I got a 404 Not Found. But now things are behaving differently. I don't want to keep looking while you're changing things.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 04:12 AM