Solved

SIMPLE ANSWER

Posted on 2001-07-11
1
164 Views
Last Modified: 2013-12-25
Hi,
I am creating this script which will submit a form to my e-mail and then redirect to my main page. It worked fine on hypermart but I have to host it on some host called supanames. I changed the perl and sendmail location but I can't change the location back to my homepage.

One hypermart is was :

print "Content-type: text/html\n\n";
open(HANDLE,"/data1/hypermart.net/krooga/support/thanks.htm") || die $!;
while(<HANDLE>) {
s/grfx/..\/grfx/g;
print;
}

On supanames :

print "Content-type: text/html\n\n";
open(HANDLE,"????????????????thanks.htm") || die $!;
while(<HANDLE>) {
s/grfx/..\/grfx/g;
print;
}

What do I put where you see the ?????????????
On the support site it says that the path to my website is $ENV{DOCUMENT_ROOT}. What should I do to link it back to my main index page ?

Sam ;-)
0
Comment
Question by:samgonzales
1 Comment
 
LVL 5

Accepted Solution

by:
amandeep earned 50 total points
ID: 6274524

samgonzales,

Replace :
open(HANDLE,"????????????????thanks.htm") || die $!;

With:
$docRoot=$ENV{DOCUMENT_ROOT};
open(HANDLE,"$docRoot/support/thanks.htm") || die $!;

Check the path of ur file from the document root.

Hope this helps.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now