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
https://forums.phpfreaks.com/topic/50440-php-form-modify-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.