Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Perl (http://www.flasher.ru/forum/forumdisplay.php?f=21)
-   -   PRINT "<HTML>... \n"; (http://www.flasher.ru/forum/showthread.php?t=47752)

looker 07.08.2003 13:48

PRINT "<HTML>... \n";
 
formatirovanije HTML coda v CGI?
metodom
PRINT "<html> .... \n";
nado sdelat o4en mnogo koda, no v formate HTML. Realbno li eto sdelat v CGI


Po drugomu.
Ja vzjal v print prosto scopiroval HTML kod, a server vidal enternal error... to est oshibku v kode... a kak ego pravilno otformatirovat, 4tobi server smog ego pro4itaT???
zARANEE SPASIBO

WD` 07.08.2003 19:52

print <<HTML;
..
HTML

looker 07.08.2003 20:20

u dalsche mogu vstavljat 4istij html kod???


nu mezdu

<<html;
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Error 401 :: Authorization Required</title>
<meta name="description" content="Error 401 :: Authorization Required">
</head>
<body bgcolor="#f5f5f5" text="#000000" link="#666666" vlink="#000000" alink="#000000">
<table border="0" width="100%" height="100%">
<tr>
<td align="center" valign="middle" width="100%" height="100%">
<table border="0" summary="">
<tr>
<td>
<div align="center"><font face="Arial" size="4" color="#CC3300">Authorization Required</font></div><br>
<table border="1" bordercolorlight="#000000" bordercolor="#FFFFFF" cellspacing="0" cellpadding="1" width="500">
<tr>
<td bgcolor="#FFBA4B" align="center">
<font face="Arial" size="2" style="font-size: 12px" color="#CC3300"><b>Error 401 :: Authorization Required</b></font></td>
</tr>
<tr>
<td bgcolor="#F3EBE0" align="center"><font face="Arial" size="2" style="font-size: 12px"><br>
<font color="#CC3300">This server could not verify that you are authorized to access the document you requested.
Either you supplied the wrong credentials (e.g. bad password), or your browser does not
understand how to supply the credentials required.
</font>
<br><br></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
HTML

Pravilno?

WD` 08.08.2003 20:17

2 looker:
 
а попробовать слабо? :)

looker 08.08.2003 23:03

net ne slabo!!! ne rabotaet!

WD` 09.08.2003 02:07

Код:

#!/usr/bin/perl
print "content-type: text/html\n\n";
print <<HTML;
<HTML>\n<HEAD>\n<TITLE>1</TITLE>
</HEAD>
<BODY><CeNTER>
HTML


looker 09.08.2003 03:05

SMOTRI, ETOT RABOTAET

print "Content-type: text/html\n\n";
print "<html><head><title>Missing Information</title></head>\n";
print "<body><h1>Missing Information</h1><br>\n";
print "Sorry, but it would appear that you've forgotten to\n";
print "fill out the $check field. Please click\n";
print "back and try again.\n";
print "</body></html>\n";
exit;


nO MNE NADO TAKOI:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Error 401 :: Authorization Required</title>
<meta name="description" content="Error 401 :: Authorization Required">
</head>
<body bgcolor="#f5f5f5" text="#000000" link="#666666" vlink="#000000" alink="#000000">
<table border="0" width="100%" height="100%">
<tr>
<td align="center" valign="middle" width="100%" height="100%">
<table border="0" summary="">
<tr>
<td>
<div align="center"><font face="Arial" size="4" color="#CC3300">Authorization Required</font></div><br>
<table border="1" bordercolorlight="#000000" bordercolor="#FFFFFF" cellspacing="0" cellpadding="1" width="500">
<tr>
<td bgcolor="#FFBA4B" align="center">
<font face="Arial" size="2" style="font-size: 12px" color="#CC3300"><b>Error 401 :: Authorization Required</b></font></td>
</tr>
<tr>
<td bgcolor="#F3EBE0" align="center"><font face="Arial" size="2" style="font-size: 12px"><br>
<font color="#CC3300">This server could not verify that you are authorized to access the document you requested.
Either you supplied the wrong credentials (e.g. bad password), or your browser does not
understand how to supply the credentials required.
</font>
<br><br></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>


oSHIBKA ZAKLJU4AETSJA, JA TAK PONJAL V FORMATIROVANII...
...body bgcolor="#f5f5f5" text="#000000" link="#666666...

VOZMOZNO V TAKOM FORMATIROVANNII PERL EGO NE 4ITAET !!!

looker 09.08.2003 03:06

ILI RAZRESHENI TOLKO PROSTEISHIJE KOMANDI HTML...?

I NELZJA DAVAT VSJAKIE BGCOLOR, FONT FACE I T.D.

looker 09.08.2003 03:07

VOZMOZNO, RAZRESHENI TOLKO PROSTEISHIJE KOMANDAI, TAKIE KAK <BODY><CENTER> ...

NO MNE NADO TAKIE <BODY BGCOLOR...></BODY>

MOZET V ETOM OSHIBKA?

looker 09.08.2003 03:09

ILI MOZET OTKRIT GOTOVUJU STRANICU S POMOSCHJU OPEN...
ILI KAKOI NIT KOMANDI???? TO EST ZAGRUZIT GOTOVUJU STRANICU !???

I ESLI ETO VOZMOZNO, TO KAK?????3



zARANEE SPASIBO!

WD` 09.08.2003 14:08

2 looker:
 
Вложений: 1
блин, наглядно показал ведь :)
см. аттач..

looker 09.08.2003 15:12

ogromnoe spasibo!
Toko stranno... delal vse toze samoe i ne rabotalo... postavil tvoi kod i zarabotalo... :)))

SPASIBO

WD` 09.08.2003 16:51

Не за что :)

soper 13.09.2003 17:38

nado napisat"

print "<<EOF";


tut pisat" vse cho ugodno



EOF


Часовой пояс GMT +4, время: 18:51.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.