A variable in a text?

2002-02-21 Thread Octavian Rasnita
Hi all, I want to make a form to let the visitors to type a text. In this text, I want to allow them to insert a variable. For example a $name variable. I would like to allow them to insert something like: My name is XXX and I would like to meet <> from LA. And on the next page (as a test) I w

Re: Limiting form field submission length with perl

2002-02-21 Thread Joshua Hayden
use CGI ':standard'; if (length(param('field')) > 25) { subroutine("Please limit your response to 25 characters."); } elsif ... Best Regards, JOSHUA D. HAYDEN Owner/Operator of www.PinnacleSiteDesign.com - Original Message - From: "Hughes, Andrew" <[EMAIL PROTECTED]> To: <[EMAIL PROT

Re: selecting a text file for HTML output

2002-02-21 Thread Sir Douglas Cook
Thank you,,, Joshua Hayden That was exactly what I was trying to do. [EMAIL PROTECTED] - Original Message - From: "Joshua Hayden" <[EMAIL PROTECTED]> To: "Sir Douglas Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 9:58 AM Subject: Re: selecting a text f

Limiting form field submission length with perl

2002-02-21 Thread Hughes, Andrew
I have a form that people are going to be filling out online. I am using JavaScript on the front-end to validate the form. However, for security sake and for my own knowledge, I would like to know how to limit the length of form submissions on my server validation sequence. I don't want to cut

Re: selecting a text file for HTML output

2002-02-21 Thread Klaus Mangold
>What do I need to do to get the Output to look like dougs.txt? >and >How come my newline \n"; didn't seem to work??? Where did the dots come >from? You must use HTML code! Newlines are ignored by the browser. Instead print for a new line. btw what do you want to do with Test 2? I do not under

Re: [Q]Validating forms?!

2002-02-21 Thread Mo Holkar / UKG
At 11:37 21/02/02, you wrote: >Bhanu Prakash wrote: > > >HI All, > > Is there a way to Validate the fields of a > >form? Say I have a > >text field, and I should show an error to the user if > >he does not enter > >anything while submitting the form? > Can somebody give me some sample sc

Re: selecting a text file for HTML output

2002-02-21 Thread Joshua Hayden
Not exactly sure what you're trying to do...Try something like this. #!/usr/bin/perl print "Content-type: text/html", "\n\n"; print "\n\n"; print "test page\n"; print "\n"; print "\n"; open TEXT, "../cards/dougs.txt"; while () { print "$_"; } close TE

Re: selecting a text file for HTML output

2002-02-21 Thread Sir Douglas Cook
The text file that I want to insert is dougs.txt = Which has two sentences = Hey it works... Happy Belated Birthday... == The Code dougs1.cgi = #!/usr/bin/perl print "Content-type

[Q]Validating forms?!

2002-02-21 Thread Bhanu Prakash
Bhanu Prakash wrote: >HI All, > Is there a way to Validate the fields of a >form? Say I have a >text field, and I should show an error to the user if >he does not enter >anything while submitting the form? Can somebody give me some sample script?! with some high level explaination? >Tha