Link to home
Start Free TrialLog in
Avatar of gardens
gardens

asked on

Question for icd

Hi icd,

I am just starting to learn CGI and need a script similar to the one you added when you answered "How Do I do This?" Only instead of the two fields: Name and Email Address I like it to be: an URL (hyperlink) and Describtion. So without the many extras that are usually included with such scripts.

Thanks
Avatar of flivauda
flivauda

just change the names from name and email to url and description, post the code you are looking at and I will show you what to change
Avatar of gardens

ASKER

Sorry flivauda, I couldn't answer before: some family related problems. I would appreciate it if you could change the code for me.
https://www.experts-exchange.com/Q.10013514

----cut here----
#!/usr/local/bin/perl

require "cgi-bin.pl";

print&PrintHeader;
print<< END__ OF_HEADER__ ;
<html>
<head>
</head>
<body>

EMAIL: $in{'email'} NAME: $in{'name'}<br>

</body>
</html>
__END-OF-HEADER__
1;

----cut here----

Just one question about this. If I store a page from Experts Exchange (with the extension html or txt) I can't just cut and
past it. The tags for EE's table are added and so are the special
characters like &lt; and &quot;  So how can I just cut and past it (do I need a program that converts html in txt; but even then there still are the additional table tags)?

Thanks
Avatar of ozo
'END__ OF_HEADER__'
and
'__END-OF-HEADER__'
should be the same
Avatar of gardens

ASKER

Thanks ozo, you are right.
ASKER CERTIFIED SOLUTION
Avatar of flivauda
flivauda

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gardens

ASKER

Thanks a lot flivauda!