473,569 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Input Submit not passing over correctly in IE7

nathj
938 Recognized Expert Contributor
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 2159
nathj
938 Recognized Expert Contributor
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
2598
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 for user to submit their contact info (name, phone, email, address.....etc...). All user's input will be sent to "processForm.php" using POST. In...
2
2816
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 products ordered by a certain company. Along with those values, I'm creating a text box at the end of each record that a user may or may not enter in an...
15
28930
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="..." value="..."> with <input type="submit" ...> the only name-value values submitted (pushed into the query string) is the one of the submit button that was...
16
9522
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 href="pagetwo.php?says=meaning"><img src="smiley.gif"></a> Pick one from drop-down menu: <p> <form> <select name=meaning>
15
4733
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is...
5
8605
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". Same file path containing special characters works fine in one machine, but doesn't work in other. I am using following API function to get short...
3
7152
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 passing the value to a hidden control but all it does is passes only the File Name and not the file path. How do I go about it. I tried checking...
1
1988
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 function, `consume'. It has one arg, INBUF, that points to a variable that points to the first character in the input buffer. The function never...
5
1910
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 that variable to be used in line 7. Since I'm not able to get the variable to work in line 7, i currently have 'testaccount' hard coded. Hoping...
0
7700
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...
0
7614
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...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
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
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
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...

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.