SunQuest
 
           PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 1st, 2004, 02:07 PM
mystic7 mystic7 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 mystic7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing a hidden variable to another html page

OK, you probably can't do this, but if you can I'm sure one of you can help me. I'll keep it simple. I have 3 html pages, one for each product. There's a button on each page that takes you to another html page with a form on it, which sends the information to a php sendmail script. I need to be able to pass a hidden variable from the product pages, into a hidden field in the form, which will then place that info into the email that the sendmail script sends me. The hidden variable will tell me which of the 3 products the customer is interested in, depending on which product page they're going to the form page from. Can I do that or does at least one of the html pages have to be a php page? Now, if someone can help me I have NO knowledge of php at all, so I'll need the whole solution, not just "add this line, echo=('variable/n'). That should do it." I won't know where to put it. Sorry to be such a pain, but I'd appreciate any help anybody can give me.
M7

Reply With Quote
  #2  
Old September 1st, 2004, 02:28 PM
mystic7 mystic7 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 mystic7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A simpler way of putting it

How do I pass a hidden variable on one html page to another html page with a form on it? The form has spaces for name, company, phone number, etc. which is sent to a php sendmail script on the server which emails the information to me. I need to have that hidden variable included in the email. What would be the complete code for the first html page, and what code do I put inside form of the second page to hold that information and pass it to the sendmail script?

Reply With Quote
  #3  
Old September 2nd, 2004, 01:08 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 956 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 650865 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650865 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650865 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650865 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650865 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650865 Folding Title: Super Ultimate Folder - Level 2Folding Points: 650865 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 8 h 23 m 32 sec
Reputation Power: 4
Send a message via ICQ to Itsacon
tried an <input type="hidden" /> tag?
It works the same as a normal input field, only it isn't shown. Simply assign a name and value, and you can read them from the POST vars on the next page.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Passing a hidden variable to another html page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway