"<a href" in combination with php

From: Geert-Jan van Leeuwen (nospam_at_sumpthing.nl)
Date: 04/29/04

  • Next message: Alcedema: "MRTG + PHP input"
    Date: Thu, 29 Apr 2004 14:36:59 +0200
    
    

    To learn PHP i am trying to write a litte survey program.

    I input a couple of surveys in the database and reading them in php.
    Reading the row gives my a survey_id (dutch: enquete_id) and survey name
    (dutch: naam).
    I want to use a "<a href" html-code to show the surveys and let me chose one
    to let the user fill it in. I made a function "choice" (dutch: keuze) that
    lets me fill in the selected survey.

    I used following code and of course it doesn't work.

    <?
    while ($row = mysql_fetch_array($resultaat))
    {
      echo "<b>Enquete: </b>"; ?>
      <a href="#<?php echo "keuze(" .$row["enquete_id"] ?> )">
      <?php echo $row["naam"] . "</a><br>";
    }
    ?>

    It is stupid to make a function and try to reference it using relative
    html-ancher, but i don't know how else to do it.

    Any idea's?

    Thanks in advance,

    Geert-Jan


  • Next message: Alcedema: "MRTG + PHP input"

    Relevant Pages

    • Re: OT The Reading Public (Not)
      ... just started reading the children's fiction "Warrior" series about ... He also wrote an interesting history of "Cod: ... that survey would have found if the group was RMCG posters? ...
      (rec.music.classical.guitar)
    • (The Nation) Making Thais read books
      ... Thailand sorely lacks a reading culture ... A recent survey that might be more alarming than the one on Thais ... Internet to blame for distracting children from reading books? ...
      (soc.culture.thai)
    • Re: O/T - Update: Night Table Reading and Music
      ... survey and have some new books on your night table. ... reading these days? ... And what is currently playing on your turntable / CD ...
      (sci.military.naval)
    • Re: O/T - Update: Night Table Reading and Music
      ... survey and have some new books on your night table. ... reading these days? ... And what is currently playing on your turntable / CD ...
      (sci.military.naval)
    • ,,,,,,,,,,,,no time to read books
      ... More than 40 percent of Chinese say they have no time to read books ... The survey found only 84.1 percent of those surveyed believed reading books has ...
      (soc.culture.malaysia)