"<a href" in combination with php
From: Geert-Jan van Leeuwen (nospam_at_sumpthing.nl)
Date: 04/29/04
- Previous message: Vincent M.: "$_SERVER['SERVER_NAME'] writable !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Vincent M.: "$_SERVER['SERVER_NAME'] writable !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|