5 Replies Latest reply on Jan 11, 2012 8:26 PM by notescooper

    Using Dynamic Text to tell a Hyperlink where to go.

    notescooper

      So I am having a little trouble on my site, and this community seems like a good place to go for help, and I am sure someone out here can help me.

       

      I have a webpage that uses dynamic text and images, and it serves as my user profile page. I know the database and all of that stuff is set up correctly because all of the dynamic text shows up as it should.

       

      Here is the problem I am having. I have an area where a user will be able to view files he has uploaded, and click on the name of a file to view it.

       

      The way I have it set up, is the clickable text is dynamic text from the server, called uploadname1. I want to make this text into a link, that sends them to the file stored as fileupload1.

       

      Here is my code that I thought should do it.

      "<a href="<?php echo $row_Recordset1['fileupload1']; ?>"/><?php echo $row_Recordset1['uploadname1']; ?></a>" (minus the quotes of course)

       

      The text underlines and changes the color as it should, but it is not clickable. Can someone out there help me?


      Tyler

        • 1. Re: Using Dynamic Text to tell a Hyperlink where to go.
          John Waller Adobe Community Professional & MVP

          What does the final code output (View Source in any browser) look like?

           

          Got a URL so we can take a look?

          1 person found this helpful
          • 2. Re: Using Dynamic Text to tell a Hyperlink where to go.
            notescooper Level 1

            "

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

            <html xmlns="http://www.w3.org/1999/xhtml">

            <head>

            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

            <title>Profile - NoteScoop</title>

            <style type="text/css">

            body {

            background-image: url(../bgg.jpg);

            background-repeat: no-repeat;

            color: #FFF;

            }





            #bio {

            font-family: Tahoma, Geneva, sans-serif;

            height: 213px;

            width: 460px;

            left: 404px;

            top: 53px;

            position: absolute;

            }

            #editlink {

            font-family: Tahoma, Geneva, sans-serif;

            color: #FFF;

            position: absolute;

            height: 40px;

            width: 80px;

            left: 178px;

            top: 677px;

            }

            a:link {

            color: #FFFBF0;

            }

            a:visited {

            color: #FFFBF0;

            }

            a:hover {

            color: #FFFBF0;

            }

            a:active {

            color: #FFFBF0;

            }

            #photo {

            position: absolute;

            height: 220px;

            width: 205px;

            left: 121px;

            top: 70px;

            }

            #submit {

            font-family: Tahoma, Geneva, sans-serif;

            color: #FFFbf0;

            left: 290px;

            top: 25px;

            position: absolute;

            width: 59px;

            }





            #about {

            position: absolute;

            height: 25px;

            width: 90px;

            left: 128px;

            top: 25px;

            font-family: Tahoma, Geneva, sans-serif;

            color: #FFFbf0;

            }

            #abouthead {

            position: absolute;

            height: 25px;

            width: 48px;

            left: 466px;

            top: 25px;

            font-family: Tahoma, Geneva, sans-serif;

            color: #FFFbf0;

            }

            #contact {

            font-family: Tahoma, Geneva, sans-serif;

            color: #fffbf0;

            position: absolute;

            height: 25px;

            width: 85px;

            left: 616px;

            top: 25px;

            }

            #blog {

            font-family: Tahoma, Geneva, sans-serif;

            color: #fffbf0;

            position: absolute;

            height: 25px;

            width: 33px;

            left: 792px;

            top: 25px;

            }



            #notes {

            font-family:Tahoma, Geneva, sans-serif;

            color: #fffbf0;

            position: absolute;

            height: 84px;

            width: 460px;

            left: 425px;

            top: 510px;

            }

            #friends {

            font-family: Tahoma, Geneva, sans-serif;

            color: #fffbf0;

            position: absolute;

            left: 421px;

            top: 278px;

            width: 460px;

            }

            #uploader {

            font-family: Tahoma, Geneva, sans-serif;

            position: absolute;

            height: 53px;

            width: 460px;

            left: 543px;

            top: 645px;

            }

            #groups {

            font-family: Tahoma, Geneva, sans-serif;

            position: absolute;

            height: 354px;

            width: 292px;

            left: 80px;

            top: 366px;

            }

            #ad1 {

            position: absolute;

            height: 220px;

            width: 205px;

            left: -40px;

            top: 38px;

            }

            #sponsored {

            font-family: Tahoma, Geneva, sans-serif;

            color: #000;

            position: absolute;

            height: 22px;

            width: 122px;

            left: 958px;

            top: 69px;

            }

            </style>

            </head>



            <body>

            <div class="sponsored" id="sponsored">

              <div class="ad1" id="ad1"><a href="http://www.xfactordesigns.com"><img src="xfactor_designs_badge.jpg" /></a></div>

              Sponsored Links

            </div>

            <div class="groups" id="groups">

              <p>Study Halls, a feature which we are waiting to bring out until it is fully ready, will change the way you study forever. </p>

              <p>Study Halls will allow you to create a worldwide network of people in the same class, school, or major as you.</p>

              <p>Study Halls will contain useful note listings, chatrooms, tutors and more! </p>

              <p>We look forward to being able to open these to you soon!</p>

            </div>

            <div class="uploader" id="uploader">

              <form id="form3" name="form3" enctype="multipart/form-data" method="post" action="">

                <input type="file" name="upload" id="upload" />

              </form>

            </div>



            <div class="notes" id="notes"><a href="az.doc"/>tester</a></div>



            <div class="blog" id="blog"><a href="http://www.quincycreations.com">Blog</a></div>

            <div class="contact" id="contact"><a href="contact.php">Contact</a></div>

            <div class="photo" id="photo"><img src="profilephotos/twhite.jpg" alt="UserPhoto" width="205" height="220" /></div>

            <div class="abouthead" id="abouthead"><a href="About.php">About</a></div>

            <div class="submit" id="submit"><a href="Submit.php">Submit</a></div>

            <div class="editlink" id="editlink"><a href="editprofile.php">Edit Profile</a></div>

            <div class="about" id="about"><a href="classes.php">Subjects</a></div>

            <div class="bio " id="bio">

              <form id="form1" name="form1" method="post" action="">

                <p><h3>Tyler      White</h3>

                </p>

                <p>College: Xavier University of Louisiana </p>

                <p>Major: Mathematics</p>

                <p>Not only am I the creator of NoteScoop, but I am also a college student. I study Mathematics and am doing research in Differential Equations. When I am not doing work or math, I am spending time with my wonderful girlfriend, most likely on Minecraft.</p>

                <p> </p>

                <p> </p>

              </form>

            </div>

            <div class="friends" id="friends">

              <form id="form2" name="form2" method="post" action="">

                <p> </p>

                <table width="460" height="147" border="o">

                  <tr>

                    <th width="146" height="141" scope="row"><img src="profilephotos/paminaprofile.jpg" width="104" height="107" /></th>

                    <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>

                    <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>

                  </tr>

                </table>

                <p> </p>

                <p> </p>

                <p> </p>

              </form>

            </div>



            </body>





            </html>

            "

            • 3. Re: Using Dynamic Text to tell a Hyperlink where to go.
              notescooper Level 1

              The line that contains

              "

              <div class="notes" id="notes"><a href="az.doc"/>tester</a></div>" is the line where my PHP code I write above goes.

               

              Looking at the course let me know that it at least knows where it is supposed to go.

              • 4. Re: Using Dynamic Text to tell a Hyperlink where to go.
                mytaxsite.co.uk Level 6

                "

                <div class="notes" id="notes"><a href="az.doc"/>tester</a></div>"


                 

                the above code should be this:

                 

                 

                <div class="notes" id="notes"><a href="az.doc">tester</a></div>
                

                 

                All I have done is remove the / after "az.doc".  See if it makes it clickable.

                 

                Good luck.

                1 person found this helpful
                • 5. Re: Using Dynamic Text to tell a Hyperlink where to go.
                  notescooper Level 1

                  Chalk up another silly mistake for me.

                   

                  The link was covered up by a transparent area, so the mouse was recogizing the transparent part, and not the link. I moved it, and worked wonderfully. Thank you both for your help, and JTANNA, thats for noticing the extra "/"