Closed Thread Icon

Topic awaiting preservation: ? help ? Pages that link to <a href="https://ozoneasylum.com/backlink?for=12873" title="Pages that link to Topic awaiting preservation: ? help ?" rel="nofollow" >Topic awaiting preservation: ? help ?\

 
Author Thread
TanGoZ
Nervous Wreck (II) Inmate

From: UK
Insane since: Jan 2003

posted posted 08-29-2003 16:15

This is probably a really stupid question, but hey if i dont ask i wont find out!!!

I have just looked at a search.cgi script (mats script archive), the results that it generates are shown on a page that is written at the bottom of the cgi script, my question is.....

As i am only just starting out, doing amature web design, and am using dreamweaver mx is there a way of creating the page i want the results to appear on using dreamweaver and copying the code into the cgi script?????????? this also includes formating the page using a style sheet?!?!?!?

I hopr this makes sence

Thanks

Pain is weakness leaving the body!

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-29-2003 23:40

The answer is yes. you should be able to update the HTML

Show us the script somewhere and we can help you out



.:[ Never resist a perfect moment ]:.

TanGoZ
Nervous Wreck (II) Inmate

From: UK
Insane since: Jan 2003

posted posted 08-30-2003 00:59

The following is the code that is at the bottom of the cgi script;

}

sub return_html {
print "Content-type: text/html\n\n";
print "<html>\n <head>\n <title>Results of Search</title>\n </head>\n";
print "<body>\n <center>\n <h1>Results of Search in $title</h1>\n </center>\n";
print "Below are the results of your Search in no particular order:<p><hr size=1 width=75%><p>\n";
print "<ul>\n";
foreach $key (keys %include) {
if ($include{$key} eq 'yes') {
print "<li><a href=\"$baseurl$key\">$titles{$key}</a>\n";
}
}
print "</ul>\n";
print "<hr size=1 width=75%>\n";
print "<ul>\n";
$i = 0;
foreach $term (@terms) {
print "$term";
$i++;
if (!($i == @terms)) {
print ", ";
}
}
print "\n";


print "</ul><br><hr size=1 width=75%><P>\n";
print "<ul>\n<li><a href=\"$search_url\">Back to Search Page</a>\n";
print "<li><a href=\"$title_url\">$title</a>\n";
print "</ul>\n";
print "<hr size=1 width=75%>\n";
print "</body>\n</html>\n";
}

but as i dont know much about this script i dont know how to create a page that looks similat to my site!!!!!

Pain is weakness leaving the body!

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 08-30-2003 01:08

OK...see those places where it says: print 'blah blah blah'?

those are where it's spitting out the HTML code. Just chop your code up and put it in the appropriate places in there and it should come out looking the way you want it to.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-30-2003 03:11

Of course, it'd be nice if it were that simple

You will need to know quite a few things.

1) You'll need to understand what all of the variables in that script mean (everything that begins with a '$').

2) You'll need to know what all of the HTML does, so you will know where to put what.

Now, that sounds like it may be something that is going to be quite a challenge for you at this point. My biggest suggestion would be to a) learn HTML so that you understand what markup is needed, and b) start learning a bit of server side code so you understand what the variables do and why.
Of course, that's not a wuick easy thing, and will take time and practice.

In the meantime, we can be of more help, but, this is a bit of a vague and large scale question at the moment.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-30-2003 05:12

It's not that bad, you only need to know the variables that are in the print statements and they are all stuff that gets displayed so they should be fairly straight forward


Another way to make this easier is that instead of using a bunch of print statements you can consolidate them by doing something like this

print qq~

Anything you want to print here

~;

that helps a lot



.:[ Never resist a perfect moment ]:.

« BackwardsOnwards »

Show Forum Drop Down Menu