Hi Chessbot
Man way over my head im still learning i only started learning 2 weeks ago and already i have learnt a fare bit, but meta refresh??????
what is it.....
Its a stasis leak
what is it..
its a stasis leak in the fabric of time..
what is it..
Can you surgest a fix for my problem...
Ok i sat down and had another crack at it this is what i came up with see below. Now it finds line 10 in the array and prints those values as header the values in the array "10 Billy"
The part im struggling with is reopening the file and writting the new line back to line 10 in the array with...
Hi Mikevh
the array looks like this
$weekno|$playerpick
1|golfer
2|golfer
3|golfer
4|golfer
5|golfer
6|golfer
if the user picks week 4 ie $week_pick from the form then it should find week 4 in the array $weekno and replace the second string $playerpick golfer with the player they picked...
Trying to step through the array until one of the first elements in the array is matched then replace that line with new data.
Madaxe
open (PLAYERLIST3, "$perpicklist");
@userlist3 = <PLAYERLIST3>;
close (PLAYERLIST3);
foreach $moddata (@userlist3) {
chomp $moddata;
($weekno, $playerpick)...
When my password field is empty and i hit submit it gets stuck in a loop involving the sub error and i get a popup box coming up continualy i tried using an unless statement but i cant get it to work all my form scalars are being set correctly i see the values in the error popup box.
Also i...
Hi Paul
Can you tell me how i print debug statements, i will remove the cgi at the top but i think you are right that it wont make much differance.
Marc
Madaxe
I have this line of code but i want the link to open in new window can anybody help
MadAxe
<span style="position: absolute; left: 0; top: 50"><a href="http://www.pgatour.com" onMouseOver="WEB_LINK_2.src='IMAGES/web_link2_over.jpg';" onMouseOut="WEB_LINK_2.src='IMAGES/web_link2.jpg';"><img...
In my code below i want single or multiple tab spaces instead of "------"...
can anybody help
MadAxe.
print "<OPTION VALUE=\"$preselect\">Week\($week)-----Used Picks-----$postpick</OPTION>\n";
Im having problems adding tabs or multiple tab spaces into my code can anybody help for instance the code below i want tabs instead of "-----".....
Im foxed
MadAxe
print "<OPTION VALUE=\"$preselect\">Week\($week)-----Used Picks-----$postpick</OPTION>\n";
Hi i have a sub that takes like 30 secs to run but i dont know why i have used the same sub in other cgi's and it runs instantly but this code takes ages i dont know why? code below:-
#!/Perl/bin/perl
use CGI;
################################################################################...
The third post i also found a little confusing ive only just started so im a little green and frustrated how would this fit into my existing script and how would it pass the info to my next cgi using forms?
scalar scrolling_list(
-name=>'TEST',
-values=>[@userlist]...
Hi i tried the first piece of code and it would not work i kept getting the following server error:-
Premature end of script headers: dropdown4.cgi, referer: http://localhost/~mcjeeves/RON/junk/
Bareword found where operator expected at C:/Documents and Settings/mcjeeves/My Documents/My...
I want to creat a drop down menu from an array can anybody help, i think im on the right track but i cant get it to work. My code below.
Mad Axe
#!/Perl/bin/perl
use CGI;
$userlist = "playerlist.cgi";
print "Content-type: text/html\n\n";
open (PLAYERLIST, "$playerlist");
@userlist =...
I want to creat a drop down menu from an array can anybody help, i think im on the right track but i cant get it to work. My code below.
Mad Axe
#!/Perl/bin/perl
use CGI;
$userlist = "playerlist.cgi";
print "Content-type: text/html\n\n";
open (PLAYERLIST, "$playerlist");
@userlist =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.