Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > modules/addLinkForm.inc.php
<%
  # $Id: addLinkForm.inc.php,v 1.8 2004/12/04 02:09:09 hirokai Exp $
%>
	
<br />
<div style="width: 400px">

<%	
	include_once( "utils.inc.php" );
  mysql_connect();
	mysql_selectdb( getDBName() );
	$qs = "SELECT * from links where ID = '$id'";
	$q = mysql_query( $qs );
	$success = mysql_num_rows($q);
	if( $success )
		$groupid = mysql_result($q,0,"groupid");
%>
<input type="hidden" name="id" value="<%= $id %>" />
<input type="hidden" name="createDate" value="<%= $createDate %>" />
<table>
	<tr>
		<td><a accesskey="u" href="javascript:document.forms[0].url.select();"><u>u</u>rl</a>:</td>
		<td><input name="url" value="<%= $url %>" size="45" maxlength="512" type="text" class="computer" /></td>
	</tr>
	<tr>
		<td><a acceskey="n" href="javascript:document.forms[0].name.select();"><u>n</u>ame</a>:</td>
		<td><input name="name" value="<%= $name %>" size="40" maxlength="256" type="text" /></td>
	</tr>
	<tr>
		<td><a accesskey="p" href="javascript:document.forms[0].isPrivate.select()"><u>p</u>rivate</a>:</td>
		<td>
			<label><input type="checkbox" name="isPrivate" <%= ($p || $private) ? "checked " : "" %> onClick="document.forms[0].submit();" /> (private links are hidden from others)</label>
		</td>
	</tr>
</table>

	<em><small> (note: links without <code>http:</code> or <code>ftp:</code>
	will have <code>http:</code> prepended to the front.  urls
	without <code>http:</code>, <code>ftp:</code>, or
	<code>www.</code> will have <code>http://www.</code> prepended
	to them). </small></em>

	<p style="text-align: right; margin-top: 0px;">
	<button accesskey="s" value="Save Link" class="default"><u>S</u>ave Link</button></p>
	</div>
Return current item: FeedMeLinks, Social BookmarkingSince2002