473,233 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 software developers and data experts.

Input Submit not passing over correctly in IE7

nathj
938 Expert 512MB
Hi,

I really need some help with this as I've been looking at it for over a day now and I'm sure its really simple.

The problem is that I have 3 forms each of which posts to thankyou.php. The php then handles the data depending on the value of $_POST['type'].

$_POST['type'] is set on each of the forms in the following way
[HTML]
<!--individual registration -->
<div id="register"><input type="submit" name="type" value="Register"></div>

<!-- Church registration -->
<div id="register"><input type="submit" name="type" value="Church Registration"></div>

<!-- Order Form -->
<div id="register"><input type="submit" name="type" value="Order"></div>
[/HTML]

Each of these is on a separate page.

On thankyou.php I use a switch statement to determine which form has been completed and then set the email message accordingly. This all works fine on FF2 and Opera9. For IE7 the church regristration form works a treat but the others don't. I have echo'd the $_POST['type'] oat the top of the page and it comes out fine for all 3 under FF and O but for IE7 it only works for Church Registration.

I am guessing the problem is within the lines I have shown above, but this is a guess. I would really appreciate some help on this as I have been pulling my hair out with it.

Many thanks
nathj
Sep 27 '07 #1
1 2147
nathj
938 Expert 512MB
Hi,

Well, I still have no idea why what I had explained previously wouldn't work on IE7 but I have at least come up with a fudge.

The solution was to add a hidden element to the form and then test on the value of that as the $_POST array was populated fine.

I know this is a fudge and normally I would not do such things as they are lazy and horrible. However, the site in question is due for an overhaul next year so I figure I'll use the fudge and move on with more urgent matters.

Cheers
nathj
Sep 27 '07 #2

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

Similar topics

6
by: Jay | last post by:
Hi everybody! Please help me with this problem. I try to write code for server side data validation. Initially, I have a html file called "form.html" which just contains all the necessary fields...
2
by: Renie83 | last post by:
Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not helped! What I have is a page that brings in...
15
by: Mattia | last post by:
Hi! I have a <form> that can be submitted thruogh three buttons and I need to tell witch one was pressed when the form was submitted. I now do it with 3 <input type="submit" name="..."...
16
by: Ben Sharvy | last post by:
I want to get the user's choice of some menu items, and pass them to a (PHP) page in the URL, rather than with "Submit" button. I tried this, but it doesn't work: <a...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
3
by: Vibhu | last post by:
Hello All, I have a input box on the HTML page with the type set to file. What I want is that when the value changes in the file textbox, it should give me the full file path. I have even tried...
1
by: Ilya N. Golubev | last post by:
There is already one function processing pointer values this way. And there may easily appear more, including wrappers for this function. For purposes of further discussion, consider simplified...
5
by: steve9013 | last post by:
Hello. Hoping someone can help me out with this. Please forgive me as I'm very new to jscript. I need to have the input box at the top of the page store the string to a variable. I then need...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.