Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Display the data passed from php

by Gangabass (Vicar)
on Aug 20, 2007 at 08:50 UTC ( #633743=note: print w/replies, xml ) Need Help??


in reply to Display the data passed from php

Usually CGI scripts are placed in cgi-bin directory (with 755 access rights).

So your form must look like

<form method="get" action="/cgi-bin/mail_contact.pl" onsubmit="return +validate()">

Also don't forget to add

#!/usr/bin/perl -w
in the first line of your script (to tell server where the perl is)

Replies are listed 'Best First'.
Re^2: Display the data passed from php
by sandy1028 (Sexton) on Aug 20, 2007 at 09:11 UTC
    When I added the /cgi-bin/mail_contact.pl in form Got the output as
    The requested URL /cgi-bin/mail_contact.pl was not found on this serve +r. ---------------------------------------------------------------------- +---------- Apache/2.0.52 (Red Hat) Server at xxx.xxx.xx.x Port 80
      Do you have mail_contact.pl in your /cgi-bin directory?
        File is in /var/www/html/abc/mail_contact.pl and all php files are also in this directory. The form action to mail_contact.pl displays the contents of the file not just the output

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://633743]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-01-19 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?