HTML - Limit Number Of Characters
How can I limit the number of characters that will be shown from a field of a DDBB on a td ?
Thanks, Ignacio Francisco Penin Similar TutorialsIs there an upper limit on the number of files that can be uploaded into a single website folder? I highly doubt I'll ever have to worry about that, just curious. I remember from DOS days, and early Windows, that there was an upper limit on the number of files one could place into certain directories (a bit over five hundred for the root directory, if memory serves right). Was wondering if there is a similar problem with web folders. While more of a curiosity than a problem, I'd still like to know what is going on behind the scenes here... What I have is a php page with an HTML form, the submission of which goes to the same page. I'm using a hidden variable and md5 hash to execute different scripts based on what is in the $_POST variables. My question is in regards to how fast I can hit "Submit" on the form and actually have it pass information via POST. I'm dumping the POST variables to the page each load so I can see what is in it, and it is blank every time if I don't wait for about 10 seconds after the page loads to hit submit. Is this an intentional limit? If so, can it be configured somewhere? Here is a simplified version of what I am doing, confirmed that it is exhibiting the same behavior: Code: <?php print_r($_POST); echo "<br />"; ?> <form action="http://localhost/cases/concept.php" method="post"> <p> <table> <tr><td><label for="field1">Field 1: </label></td><td><input type="text" name="field1"></td></tr> <tr><td><label for="field2">Field 2: </label></td><td><input type="text" name="field2"></td></tr> <tr><td><label for="field3">Field 3: </label></td><td><input type="text" name="field3"></td></tr> <tr><td><label for="field4">Field 4: </label></td><td><input type="text" name="field4"></td></tr> </table> <input type="hidden" name="function" value="newfield"> <input type="hidden" name="token" value="md5"> <input type="submit" value="Submit"> <input type="reset"> </p> </form> I am using Apache 2.2.11 running under xampp. EDIT: Turns out this is an issue with IE, Firefox does not exhibit the same behavior... I will pursue the issue along that line now. Is there any way to limit the selection form a multiple select box to a certain number. <select multiple="multiple" size="5"> <option>Beer</option> <option>Vodka</option> <option>Guinness</option> <option>Sambuca</option> </select> How can I stop people selecting more than 2 options? Cheers in advance for the help. hi My code is- <HTML> <HEAD></HEAD> <BODY> <TABLE> <TR><TD> <SELECT NAME="Date"> <OPTION>1</OPTION> <OPTION>2</OPTION> : : <OPTION>30</OPTION> <OPTION>31</OPTION> </TD></TR> </TABLE> </BODY> </HTML> it will show the numbers from 1 to 31 in the drop down with long scrollbar. My problem is - I want show only 10 numbers.User need to scroll and select other numbers. Is it possible? I want to limit image uploading size. For example i want to set my image size max. 50kb . Not sure if this is possible or not, but I created a scroll box, which contains a title and then text underneath it. Is there a way to limit the scrollable area, so the title is always fixed at the top of the scroll box and the text scrolls up and disappears just below the title? If its not possible in HTML/CSS, then how else can I do this? Thanks for your help in advance. I want people to be able to upload some large image files (>5M each) to my site using an upload form - the usual <input type="file" name="file" size="30" /> <input value="Upload" style="width: 60px" title="blah blah" type="submit" /> The first time someone tried it they said they couldn't upload their file. I then experimented and found that I couldn't upload files of more than about 2M size (2M worked, 2.5M and higher didn't work). Theserver seemed to give up after awhile and print out the error message that I put in for instances when the file didn't successfully upload. Is there a size limit for files uploaded through HTML forms? If so, is there a way to increase this limit via the HTML script, or something else? Hello, I have a web page that is built using components. The footer of the page is a component. When building the page, the footer is added using a glob. In the footer, there is supposed to be a bunch of Korean characters. Currently, they are not displaying properly. When the glob is viewed alone, it is still incorrect. However, if the source is viewed, the Korean characters are correct in the source, but are displaying incorrectly in the page. The charset is already set to UTF-8. What could be the issue here? I have a problem with IE6 and 7 not rendering a special character, the double up arrow, "& u A r r ;" <a rel="nofollow" href="#top">⇑</a> content="text/html; charset=iso-8859-1"> I am using the special character as link text to get the user to the top of a very, very long page with a single click. The character renders properly in FF, OP and SA. To my dismay, I just discovered that IE renders it as a box on top of the link underline. Is there any simple way, css, magic, etc., that I can get this character to render properly? The single up arrow renders, but looks anemic, and I don't want to have "Top" appearing at the end of every paragraph. (I don't want the search engines to think I am stuffing the keyword "Top".) Two single up arrows looks strange. I'm afraid to use an image since I could encounter position problems with different browsers. While suggestions for alternative design solutions are welcome, I am really after a technical a way to use the double up arrow in IE. The page: http://www.iaps.com/list-of-internet...ns-199010.html Thanks Hi I am relatively new to HTML and ASP and have been asked to help update intranet and website pages for a company who very suddenly found themselves without a web developer. I took pages that are currently on the website and changed the content to show the new press release. Everything works absolutely fine in various browser, various versions of browsers and operating systems. The one thing that worries me is I did not use reserved characters anywhere, where I noticed the previous web developer did. Should I have used them or is it not needed anymore as browsers have changed? Is it may be needed for software used by the visually impaired? Examples of where she used it: New Zealand - I just used New Zealand “ and ” - where I just used " " Any help would be much appreciated! Hi, I try to display my string "as is" in HTML page. I know the solution is escape characters. I know I can use a couple of pairs, like this Code: strResult = ReplaceCharacters(strSource, chr(38), "&") strResult = ReplaceCharacters(strSource, chr(60), "<") strResult = ReplaceCharacters(strSource, chr(62), ">") strResult = ReplaceCharacters(strSource, chr(10), "<br />") strResult = ReplaceCharacters(strSource, chr(34), """) strResult = ReplaceCharacters(strSource, chr(160), " ") which should be pretty easy to understand, just replaces characters with HTML escape characters. How about replacing a tab (chr(11)) with HTML code? Is there any escape character for that? Is there some others that I should add to my code? Hi, I am currently doing some work on our companies website. As part of this we want to add product codes to keywords to improve rankings in Google, however most of our codes include a forward slash (/), e.g. CC/250S. Does anyone know if the forward slash is a valid symbol in the keywords field, or would this make cause problems in the code? Hello, I have a site with UTF-8 encoding. The site uses some japanese characters. However some customer complains that they can see only small boxes instead of the japanese characters both with IE and Firefox. It is probably OS related as the problem occurs only on XP machines (at least until now). But not all XP shows the wrong characters only some of them. Any idea what to suggest to the visitors? Thanks in advance! What is the most simple code that trims text past x characters? I dont need a ...more link or anything, just the trim. I am reading this: Quote: Another important special character you should know about is the & character. If you'd like to have an & in your html content, use the character entity & instead of the & character itself. I don't understand the entire paragraph above, can any give an example of the above or explain in another way please? |