Results 1 to 2 of 2

Thread: PHP question

  1. #1
    Join Date
    Mar 2003
    Posts
    1

    PHP question

    I have a SQL database that I am using for a dynamic website. I store a url in the database and am trying to make it a clickable url in my webpage. How can I do this? Here is my code:

    <p><input type="text" name='url(<?php echo $NewContentSource->AbsolutePosition()?>)' value='<?php echo fixHTMLquotes($NewContentSource->Value("url")) ?>' size="24" border="0"></p>

    Thanks for any help!
    Warren Kuhl

  2. #2
    Join Date
    Dec 2002
    Location
    Cape Town, South Africa
    Posts
    75
    I think you mean to use an <a href> tag. An <input> tag in html is for sending things to the server - if the url is already in the database, and you just want to display it. Assuming your PHP snippet of code correctly returns a url, you'd need something like:
    PHP Code:
    <a href='<?php echo fixHTMLquotes($NewContentSource->Value("url")) ?>'>Click me</a>

Posting Permissions

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