Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Question for icd

Posted on 1998-11-30
6
Medium Priority
?
179 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
[X]
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
  • 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
Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

 

Author Comment

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

Accepted Solution

by:
flivauda earned 480 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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 …
Suggested Courses

636 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