|
-
Feb 28th, 2002, 03:28 PM
#1
Thread Starter
Stuck in the 80s
Conc...That One Word.
How can you add two strings together in CGI? like...
Code:
$var1 = "dude";
$var2 = ", where's my car!?";
$var3 = $var1 + $var2;
That'd be the C++ equivilent. How do you do it in CGI?
-
Feb 28th, 2002, 03:29 PM
#2
Member
In PHP the operator is ., perhaps it's the same in CGI...?
-
Feb 28th, 2002, 03:31 PM
#3
Thread Starter
Stuck in the 80s
I remember that now! Thanks, Arien.
-
Feb 28th, 2002, 05:14 PM
#4
Frenzied Member
Uhm, CGI isn't a language. If you are using Perl, the string concatenation operator is the period.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Feb 28th, 2002, 05:18 PM
#5
Thread Starter
Stuck in the 80s
Uhm, I never stated it was.
CGI is most commonly associated with perl. I never said my terminology was perfect either. In fact, I admitted I didn't know what the term was for doing this right in the subject of the post.
Get off my back.
-
Feb 28th, 2002, 05:19 PM
#6
Thread Starter
Stuck in the 80s
And I already figured this out. So stop answering my questions after they've already been answered.
-
Feb 28th, 2002, 05:58 PM
#7
PowerPoster
Originally posted by The Hobo
In fact, I admitted I didn't know what the term was for doing this right in the subject of the post.
it's concatenation, just for your info
-
Feb 28th, 2002, 06:22 PM
#8
Thread Starter
Stuck in the 80s
woo! got the first four letters
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|