Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 30th, 2000, 01:19 PM
ramsie ramsie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 2 ramsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How can I ensure that users don't enter long lines of text into a text area box with no spaces into a text area field? ie.:

fgfhgjhgfjhgjhgjhgjhgjhgjhgjhgjhgjhgjhgjhgjh

I would like the script (an interactive story which takes the entry of a form and posts to an html file) to insert a space if it comes across a line of more than 25 characters in a row without a space. Specifically so tricksters can't wreak havoc with the table layout. I also don't want to limit the entries of those who are really wishing to be a part of the story.

I can give more info about the existing script, if necessary. I also apologize ahead of time if you post a reply and I have to ask more questions because this is very new to me.

Thank you
Ramsie Shick

Reply With Quote
  #2  
Old March 30th, 2000, 06:08 PM
12338323 12338323 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 1999
Location: eugene, or, us
Posts: 8 12338323 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to 12338323
What you are looking to do can be done with a well thought out regular expression. I would have to play around with it a bit, as regular expressions tend to involve a fair amount of trial and error work. You may want have perl look for a maximum number sequencial alpha-numberic characters before hitting a space or something.

Good luck.

Greg

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Controling what users enter into text area

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap