Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linking code HTML in Perl

Posted on 2009-05-15
2
Medium Priority
?
143 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 1000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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 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 …
Six Sigma Control Plans

705 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