Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 24th, 2004, 09:19 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
is this right syntax?

I have a live site that I'd like to change but don't want error in the updated code...BTW, it's PERL (but it's only if else so it should be relatively similar):

WAS:
sub send_off {
if ($call_sale_script_as eq "script") { print "Location: $aftersalenn"; exit;}
elsif ($call_sale_script_as eq "image tag") {
print $q->header(-type=>"image/gif");
open (FILE, "$invis_graphic_path");
flock(FILE, 2);
print <FILE>;
flock(FILE, 8);
close (FILE);
exit;
}

CHANGED TO:
sub send_off {
$aftersale1 = http://www.mysite.com/page1.php;
$aftersale2 = http://www.mysite.com/page2.php;

if ($call_sale_script_as eq "script") {
if ($item_number == 150) {print "Location: $aftersale1nn";
} else {print "Location: $aftersale2nn";
}

exit;}
elsif ($call_sale_script_as eq "image tag") {
print $q->header(-type=>"image/gif");
open (FILE, "$invis_graphic_path");
flock(FILE, 2);
print <FILE>;
flock(FILE, 8);
close (FILE);
exit;
}

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > is this right syntax?


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway