473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

perl and url

Hi,

I made a cgi-script to subscribe a membership on a particular site. The
moment the new member wants to log on, he has to fill out a login and
password that he received. So if the verification is correct, I want to show
the site. How can I show that url via perl?

Greetz, Laurens.
Jul 19 '05 #1
2 2248
Laurens P. wrote:
I made a cgi-script to subscribe a membership on a particular site.
The moment the new member wants to log on, he has to fill out a login
and password that he received. So if the verification is correct, I
want to show the site. How can I show that url via perl?


Maybe you print the URL using the print() function?

jue
Jul 19 '05 #2
This can be done several different ways. If you are using the Apache web
server, you can write one CGI script where the user can subscribe to the
site. The script would gather the user information and add the
user/password entry into the password file using the htpasswd utility that
comes with Apache. The main page would be in a separate directory that
would be password protected and would authenticate the user using the
password file written to be the first page. Another method is to use a
single CGI script to manage the passwords and show the main page. This
would basically be a dual purpose CGI script that would invoke itself as the
form action. When the user first comes to the page, the login page is
shown. When the user/password is entered, the same CGI page is invoked and
passed the user/password parameters. After verification, the real page is
shown. You may want to ask this question on a CGI newsgroup as it's a bit
difficult to explain in great detail here.
"Laurens P." <La*************@Yucom.be> wrote in message
news:bl**********@news.worldonline.be...
Hi,

I made a cgi-script to subscribe a membership on a particular site. The
moment the new member wants to log on, he has to fill out a login and
password that he received. So if the verification is correct, I want to show the site. How can I show that url via perl?

Greetz, Laurens.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: -------------------------------------...
31
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
13
by: Otto J. Makela | last post by:
I'm trying to install to php the Perl-1.0.0.tgz package (from http://pecl.php.net/package/perl, enabling one to call perl libraries) to a pre-existing Solaris system. Unfortunately, the attempt...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
4
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.