The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
The only thing is, I have a couple of questions that you fine people may be able to help with. First of all, is having a small number of pages a good idea? So far I have a Contact Page, Portfolio Page, Script Diary (to publish some of my written programs/online scripts) and Home planned, but I'm not sure if that's really enough.
Also, on the home page I was going to a little 'about' intro, any tips on what I should include/avoid?
And finally, I need a host/web server to try out my Perl CGI scripts on, but I'm a little stumped. In the book I'm working through, it mentions that Apache is a free web server that can be used, and otherwise I'd have to pay to use these scripts on a fully-fledged domain (which I was planning on doing in the future, but not just yet). Now I know nothing about Apache, what it does and how to get it, so can anyone give me a little information on this? Whether or not it's worth it?
I know very little about web hosting and the like, so any help would be hugely appreciated.
Cheers.
(not sure if this will post correctly though)
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
} else {
$buffer=$ENV{'QUERY_STRING'};
}
@pairs=split(/&/, $buffer);
foreach $item (@pairs) {
($tmp,$value) = split(/=/,$item);
$value=~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value=~ s/^\s+//;
$value=~ s/\s+$//;
$value=~ s/@/\@/;
$form{$tmp}=$value;
}
This splits up the vars, unpacks the char codes etc.
Then you can access your form variables with $form{'name'} and so on.
> The perl itself is fine, I've checked through and no failures occure,
> so it must be the HTML. For action I've got the script path and the
> method is post, surely this should send the name value of the input
> field (which I made $name) to the Perl script?
Well, lets start at the beginning, the variables get sent to the perl script, but its up to you to process them and extract them into variables within the script that you can use (eg $name). Severals ways of doing this, either via the CGI module or by reading STDIN yourself. Are you doing this?
Just one more little question about a script a tried out. Well I tried to run a piece of Perl code, which requires some input from an HTML form, but it doesn't seem to work.
The perl itself is fine, I've checked through and no failures occure, so it must be the HTML. For action I've got the script path and the method is post, surely this should send the name value of the input field (which I made $name) to the Perl script?
Or am I doing something completely wrong? Cheers (again) :-D
Its very good,
Cheers Phi11ip!!
Any ideas?
> Other than that i cannot be of much help, but could you tell me what
> Perl is like as a Web-Language as i am thinking about learning it?
Not sure what it's like as a web language, but it seems very extensive from what I've learned so far. I'm going to invest in a couple of books in order to get everythign out of, then go onto the lieks of MySQL and C/C++.
I'm not really bothered about using Perl online at the moment, I just need something to test out scripts on, then I'll use them online when I eventually get a domain.