Solved

Linking code HTML in Perl

Posted on 2009-05-15
2
142 Views
Last Modified: 2012-05-07
I'm trying to generate links in a webpage where you'd click the word and it will send you to a different site.

I'm doing this writing in Perl,  i've tried: <a href="url">Link text</a>

in the script below... but whenever i add it into the body, i receive the Server Error message.

Is there something i'm doing wrong?
<html>
<form id='form1' name='form1' method='post' action='ORFfinder.pl'>
<title>StephenMcGowan1</title>
<body>
  <label>Please enter a Fasta formatted DNA Sequence:<br>
    <textarea name='dna-textbox' id='dna-textbox' 'DNA sequence here:' cols='45' rows='5'></textarea><form id='form1' name='form1' method='post'
action='ORFfinder.pl'>
 <p>Or upload a DNA Fasta sequence file: <input type='file' name='fileupload'/></p> </label>
 
  <p>Please select an enzyme to digest sequence:</p>
  <p>
    <label>
 
      <input type='radio' name='enzyme' value='TRYPSIN' id='TRYPSIN'
/>
      Trypsin</label>
    <br />
    <label>
      <input type='radio' name='enzyme' value='ENDOPROTL' id='ENDOPROTL' />
      Endoproteinase Lys-C</label>
    <br />
    <label>
      <input type='radio' name='enzyme' value='ENDOPROTA' id='ENDOPROTA' />
      Endoproteinase Arg-C</label>
    <br />
    <label>
      <input type='radio' name='enzyme' value='V8PROT' id='V8PROT' />
      V8 proteinase (Glu-C)</label><br>
  </p>
  <p>
    <input type='submit' name='button' id='button' value='Submit' />
 
     <input type='reset' name='Reset' id='Reset' value='Reset' />
 
       <input type='button' name='Help' id='Help' value='Help' />
 
       <input type='button' name='Upload' id='Upload' value='Upload' />
 
    <br />
  </p>
</body>
</form>
</html>
 
";

Open in new window

0
Comment
Question by:StephenMcGowan
[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
2 Comments
 
LVL 39

Accepted Solution

by:
Adam314 earned 250 total points
ID: 24398372
The problem is you are using the " character to indicate the start/end of your string.  You either need to escape the " you want to appear, or use another character.
##### Example with escaping
print "<html>
more stuff here
<a href=\"www.somesite.com\">link to some site</a>
";
 
 
##### Example using another character
print qq{<html>
more stuff here
<a href="www.somesite.com">link to some site</a>
};

Open in new window

0
 

Author Comment

by:StephenMcGowan
ID: 24398427
Thanks Adam
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Six Sigma Control Plans

617 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