Solved

Linking code HTML in Perl

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

777 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