www.webdeveloper.com
Results 1 to 2 of 2

Thread: Turn form into link

  1. #1
    Join Date
    Jun 2008
    Posts
    223

    Turn form into link

    I can make what I want to do from a form in Perl, but would much rather use a link.

    How can I make the form a link?

    (Pulls record from FFDB)
    Code:
    <form action="search.pl" method="post">
    <input type="hidden" name="act" value="search">
    <input type="hidden" name="bts" value="section">
    <input type="hidden" name="keyword" value="$fd[0]">
    <input type="submit" value="$fd[1]">
    </form>

    Tried this, but doesn't work
    Code:
    <a href="search.pl?act=search&bts=section&keyword=$fd[0]">$fd[1]</a>
    Hope someone can help

    Thanks in advance

  2. #2
    Join Date
    Jun 2008
    Posts
    223
    Solved it. Wrote whole new search script and used CGI and params.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles