Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8126931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:20:11+00:00 2026-06-06T07:20:11+00:00

<input type=number name=amount max=6 /> HTML5 and PHP I am using the above code

  • 0

<input type="number" name="amount" max="6" />
HTML5 and PHP

I am using the above code in order.php but in html5. So maybe using some PHP will solve this problem?

This works in:
Opera & Chrome

Not working in:
Safare, IE & Firefox

In Opera & Chrome it shows me a warning when I exceed value 6 and I can’t proceed.

In Safari, IE & Firefox it does not show any warnings and proceeds to checkout.

Are there any alternatives to max? It needs to work in all the above browsers.

Thank you,
F4LLCON

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:20:13+00:00Added an answer on June 6, 2026 at 7:20 am

    I’m going to expand on what Millimoose said and suggest something called a polyfill to help you with this. While HTML5 forms are wonderful, they are not completely supported by every browser yet. But people spend many hours coding scripts that bring this functionality to older browsers while using the default functionality in the browsers that support it!

    The one that was mentioned for you was jQuery Tools Validator. It is really the best one for your use case as you can drop it in and not have to write tedious validation rules.

    I also recommend checking out this Placeholder script for even more HTML5 goodness in your forms!

    Remember when using cutting, new features to always integrate these types of scripts to allow older browsers to enjoy your site too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$(function(){ $(#getitem).click(function(){ var txtval = $(#txt).val(); var number = ????? $('<input type=text name=txt'+number+' value='+txtval+'
I have 3 edittexts with input type as number and 1 button that say
I used android:inputType = phone to take phone number as input, but if i
I have an input type file element: <input type=file name=val1 /> And jquery: $(input[name='val1']).off(click);
In HTML5 there is a new input type, 'search'. On most browser it's just
I have already download and install this package to support HTML5 input type http://support.microsoft.com/kb/2468871
I am using tiny table with some input fields for posting in a page.
I'm using a special input type for the iPhone mobile safari browser: <li><textarea placeholder=Store
Using: select name, id from TEST where id :2 AND name :1 order by
I have been trying for this but no success. I am using PHP, HTML,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.