Solved

Linking code HTML in Perl

Posted on 2009-05-15
2
137 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
Comment Utility
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
Comment Utility
Thanks Adam
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now