Jump to content

php form modify page


jenneke

Recommended Posts

Here is the code with only one field selected.

Thank you for your time,

Jenneke

 

$result=mysql_query("SELECT * FROM links WHERE id='$id'");

if ($row=mysql_fetch_array($result)) {

  echo '

 

  <br><br><br>

<h3>Links</h3>

<form name="form1" method="post" action="links_update.php?id='.$id.'>

  <p>

  <br>

  <select name="area">

<option selected>' . $row["area"] . '</option>

    <option>Footprint calculators</option>

    <option>Water saving</option>

    <option>Energy saving</option>

    <option>Home</option>

    <option>Garden</option>

    <option>Directory services</option>

    <option>At work</option>

    <option>Environmental labelling</option>

    <option>Recycling</option>

    <option>Investment</option>

    <option>Food</option>

    <option>Shopping</option>

    <option>Travel</option>

    <option>For the Kids</option>

    <option>Green groups</option>

    <option>Miscellaneous</option>

    </select>

 

 

 

  <br><br>

    <input name="website" type="text" size="53" value="'.htmlentities($row['website']).'">

    : Website <br>

    </p>

  <p>

    <textarea name="details" cols="40" rows="5">' . $row["details"] . '</textarea>

    : Details<br>

    <br>    <p>

          <input type="submit" name="Submit" value="Submit">

        </p>

        </form>

  ';

}

 

else {

  echo '<br><br>sorry, this entry does not exist<br><br>';

}  mysql_close();

include('footer.html');

?>

Link to comment
Share on other sites

sorry about that.  it was a mistake made because my session timed out when i tried to reply to the last response to my question.  but cant figure out how to delete this entry. 

Feel free to delete it if you know how.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.