Solved

Linking code HTML in Perl

Posted on 2009-05-15
2
141 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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

739 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