Re: Problem typing in PHP forms on Mac OS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For the record, this is NOT a PHP problem. I have no problem on my Mac using Safari or FireFox, or even Camino .7. However, there is a problem using IE on the Mac. Which, if you have Mac users still using IE, you should tell them to cease and desist. It's a discontinued product. But, you may not be able to exert this amount of control.

The problem appears to be with the credit card number fields. I can enter data as long as I tab to the fields, but I can't click on them. When I do, I lose the cursor. My guess is that the problem is caused by you using the same id for all 4 credit number fields (id="cardnum"). id's are supposed to be unique and the validator should have flagged this.

My recommendation to you is fix EVERYTHING that the validator flags. It's the right thing to do and a good habit to get into. It will save you a lot of time in trying to troubleshoot problems like this. Second, download and use FireFox for testing your javascript and your page structure. Under the Tools menu there is an option for a Javascript Console which will show you anything wrong with your javascript code. There is also a DOM Inspector, which will help you troubleshoot the structure of your web page. On your javascript init() function you are not setting a default value for the block variable.

Most of the browsers on the Mac (and Linux) are adhering to internet standards, not to what will work in IE. Code to the standards and your web page will most likely just have cosmetic issues due to varying levels of support for CSS. There are a lot of things in your code that are not exactly wrong, but definitely not correct. You don't have a DOCTYPE declared (read up on it, it's important), this will affect how a browser will render your page and function. You don't specify which version of javascript you are coding to, that can affect how your javascript is run. You should declare a script block like this:
<script type="text/javascript" language="Javascript1.5">


On Nov 16, 2004, at 5:03 PM, Jeff - Webmaster wrote:

Thank you for the response Brent. I made that change and the problem still exists. I ran the page through the validator and it found some generic problems, but nothing that seemed like it would relate here.

Jeff

At 01:19 PM 11/16/2004, Brent Baisley wrote:
I never had a problem with a Mac, nor any platform as long as I adhered to web standards. OK, so IE can be problematic especially with CSS.

Anyway, I notice that your input field doesn't have a value="" attribute. That may be your problem. I'm pretty sure it's a required attribute. IE is extremely forgiving of bad HTML, something MS actually bragged about recently.

You should run your web page through one of the validators on the internet. It will tell every little thing that is wrong with your html.
http://validator.w3.org/



On Nov 16, 2004, at 3:24 PM, Jeff - Webmaster wrote:

Hello all. I have created a few PHP pages on our website where users can go a fill out a simple form and submit it to our support department using the post method. For users on PC's, this works flawlessly. I am getting complaints from people who use Macintosh who say that they are not able to type in certain fields. The fields in question are text boxes. There is not anything special about the code (snippet at the end of this email). They are hitting the issue using Safari, Netscape, or IE and with varying versions of each. Has anyone out there run into this before?

Thanks

Jeff

<form action="go_auto.php" method="post">
<table cellspacing=0 border=0 cellpadding=2 width=350>

#condensed#

<tr>
<td><font size=1 face=arial>Billing Address</td>
<td><font size=1 face=arial><input type="text" name="cardaddress" id="cardaddress" size=35></td></tr>


#condensed#

<input type="radio" name="agreement" value="YES">I agree to the conditions above<br>
<input type="radio" name="agreement" value="NOPE">I do not agree with the conditions above<br>
</table>
<input type="submit" name=submit value="Submit">
</form>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577



--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux