473,657 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

set parameters in HTML page for a PHP page

1 New Member
Hi,

I need to set some parameters in an HTML page displayed in a lightbox (fancybox) using an iframe. The calling page is in HTML, here are the parameters to be set:
- 2 text areas named champ1 (messages subject) and zone_email (email to be answered to)
- 1 combo box named "liste1" with 3 choices
- 1 radio buttons zone named "button1" with 3 radios buttons (thus 3 choices)
- 1 checkbox zone named "checkbox" with 2 choices

I need to set these parameters but I also need my PHP contact page to display the various areas already on the page.

I've tried the following syntax:

HTML calling page:
<a href="contact2. php?$champ1=res erver&liste1=br ocante&button1= reservation&che ckbox=urgent" class="Style1"> Reserver</a>

with no luck as none of the areas are set and display the values.
As I'm not a PHP guru is there somebody to help me on this ?

Is it possible to set these parameters, share them with my PHP and make the PHP page to display the values using the layout I've already set ?



ps: I have to tell that my contact PHP page works well within my host when I click the Contact menu option, with all areas ready to be set by the user.
May 3 '10 #1
1 1963
code green
1,726 Recognized Expert Top Contributor
i don't understand what you mean by HTML parameters.
So looking at the only bit of code you have posted
Expand|Select|Wrap|Line Numbers
  1. <a href="contact2.php?$champ1=reserver&
  2. liste1=brocant e&button1=reservation&
  3. checkbox=urgent" class="Style1">Reserver</a>
  4.  
This won't work in HTML or a HTML file.
it looks like a PHP echo.wouls also fail

A bit more code (not all of it please) or a specific problem would help
May 4 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5969
by: Ravi & Paami | last post by:
After I tried upgrading my php version from 3 to 4, all my code which passes parameters between web pages have stopped working. Not sure what the problem is. Have tried defining the parameters in the accepting php page with a '$_GET; and also a $_REQUEST; but with no luck. Even tried Globals without any luck. Below is an eg. of what I am trying to do.. ------------------------ From an html page, - 'eg1.html', I am attempting to call a...
2
1286
by: xxxxyz | last post by:
Hi. Could you tell me the ways in which I can pass the value of a given variable to another Web page? I prefer NOT to use cookies and parameters in the URL. For example I want the user name to be shown in each page in a label control. Thanks.
3
1878
by: JezB | last post by:
I know I can use the querystring mechanism to pass simple parameters to a Page using Response.Redirect, but Im having problems getting this to work using Server.Transfer or Server.Execute - is this by design ? What is a simple alternative for passing optional parameters to a Page using Server.Transfer or Server.Execute? I don't want to store a session variable and check that in the called page - too flaky.
7
2512
by: Trollpower | last post by:
Hello NG, i need to know how i can pass parameters to the loginpage if i use authentication mode Forms. I need to pass different paramaters, such as a different redirection url, strings and paths to graphics depending on the page the user gets redirected to the loginpage. I found no way to achieve this, since the redirection seems to happen in the background automatically if i set authentication mode to forms. Any ideas are...
2
1571
by: gralexp | last post by:
Hi Guys. I have a problem, and for some reason I have not been able to find an answer on the net. In a nutshell, I have some codes on my page, which I want to change to an appropriate string (from a hashtable). Since I do not want to pass this hashtable to a function all the time I encounter it on the page, I want to do it once, in one function. Just capture HTML before rendering the page, and then replace codes with my strings. Any...
0
1193
by: mallz | last post by:
hi, im my jsp im dividing my page into 3 divisions, using div tag.basically im using tabs. so, on click of each tab, i want to store its id in a variable, because i need to use it later. how can i achieve that? how can i store the id in a variable? Also, how can i delete the address bar parameters, because, as i navigate from 1 tab to the other, i do not want the previous parametrs to stay, i want to change the parameters.The problem is, as...
4
2811
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi, just wondering if anyone can provide a brief example of passing parameters from one webpage to another, C# VS2005? I need to pass several selected values of dropdown list boxes to a secondary page. I have a response.redirect("secondpage") in a button click event. Thanks. -- Paul G Software engineer.
4
1539
by: studentofknowledge | last post by:
I have a local html webform page and I would like to send this data to a local sql database. Is this even possible?
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8319
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6175
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.