Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Question for icd

Posted on 1998-11-30
6
174 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:gardens
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:flivauda
ID: 1829837
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
0
 

Author Comment

by:gardens
ID: 1829838
Sorry flivauda, I couldn't answer before: some family related problems. I would appreciate it if you could change the code for me.
http://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
0
 
LVL 84

Expert Comment

by:ozo
ID: 1829839
'END__ OF_HEADER__'
and
'__END-OF-HEADER__'
should be the same
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

by:gardens
ID: 1829840
Thanks ozo, you are right.
0
 
LVL 1

Accepted Solution

by:
flivauda earned 120 total points
ID: 1829841
in the perl code change:
EMAIL: $in{'email'} NAME: $in{'name'}<br>
to
URL: $in{'url'} DESCRIPTION: $in{'description'}<br>

and in your html form, you need to change the input fields form (most likely)
<input name="email">
to
<input name="url">

and
<input name="name">
to
<textarea name="description" rows=5 cols=50>
</textarea>

and you should be set
0
 

Author Comment

by:gardens
ID: 1829842
Thanks a lot flivauda!
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
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 …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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