View Full Version : Changing Forms


ofi
10-18-2004, 12:27 PM
Hi
I am using this form for guestbook, can someone help me change this form to the other form,

<form method="post" action="signbook.php">
<div class="spacer"></div>
<label>Nafn:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label><input type="text" name="signername" />
<div class="spacer"></div>
<label>Netfang:&nbsp; </label><input type="text" name="email" />
<div class="spacer"></div>
Vefsíða:<label>&nbsp;&nbsp; </label>
<input type="text" name="url" value="http://" size="20" />
<div class="spacer"></div>
Skilaboð: <textarea name="message" rows="5" cols="20"></textarea>
<input type="hidden" name="bookurl" value="<?=$_SERVER['PHP_SELF']?>" />
<div class="spacer"></div>
<div id="submit"><input type="submit" name="submit" value="Skrifa" class="submit" /></div>
</form>

i want to use this form
<form name=guestbook method="post" action="guestbook.php">
<div align="left">
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top" align="left"><font face="sans-serif">Nafn:</font></td>
<td valign="top" align="left">
<input type="text" name="name" size="18" value="<?php echo addslashes($name); ?>"></td>
</tr>
<tr>
<td valign="top" align="left"><font face="sans-serif">Netfang:</font></td>
<td valign="top" align="left">
<input type="text" name="email" size="18" value="<?php echo addslashes($email); ?>"></td>
</tr>
<tr>
<td valign="top" align="left"><font face="sans-serif">Heimasíða:</font></td>
<td valign="top" align="left">
<input type="text" name="webpage" size="18" value="<?php echo addslashes($webpage); ?>"></td>
</tr>
<tr>
<td valign="top" align="left"><font face="sans-serif">Umsögn:</font></td>
<td valign="top" align="left">
<textarea rows="7" name="comments" cols="22" wrap=virtual><?php echo htmlspecialchars($comments); ?></textarea></td>
</tr>
<tr>
<td valign="top" align="left"></td>
<td valign="top" align="left"><input type="hidden" name="sign_guestbook" value="true"><input type="submit" value="Senda"> <input type="reset" value="Hreinsa"></td>
</tr>
</table>
</div>
</form>

I have been trying to change this, but without of luck

pb&j
10-18-2004, 12:33 PM
i dont understand your question, sorry.
my first thought is... just delete the first one and enter the second one in the spot.

ofi
10-18-2004, 12:35 PM
Sorry my English, i speak Icelandic :)

i am using the first form now, but i want to use the second one, hope you understand me

I did delete the first one and enter the second one in, with right action, but without of luck

ofi
10-18-2004, 01:30 PM
No need, found what i was looking for