View Single Post
Old 2010-02-14, 07:24 AM   #3
LD
wtfwjd?
 
LD's Avatar
 
Join Date: May 2007
Posts: 2,103
Here's the form.

http://www.lusciousdelights.com/link...ers/submit.php

I was hoping to require user to put something in one of the three fields "movies, pics, or other" so it would not be blank. But on second thought, maybe it's not such a good idea since I accept blogs.

I think this is the code for the input:

Code:
// Get the site elements
// Make the elements field back into a usable array
$elements = explode_assoc("=",",",$site->elements);
$result = DoQuery("select eid as id, element_name as name from dl_elements");
while($element = mysql_fetch_object($result)) {
	$i = (int)$element->id;
	print ("<tr>\n".
		"<td class='llthead' align='right'>\nNo.&nbsp;of&nbsp;" . $element->name . ":\n</td>\n".
		"<td class='lltbody'>\n<input type='text' size='5' name='elements[$i]' value='" . $elements["$i"] . "' />\n</td>\n".
		"</tr>\n");
}		
print("<tr>\n".
	"<td class='llthead' align='right'>\nSite Type:\n</td>\n".
	"<td>\n<select name='type'>\n");
__________________
Artisteer Wordpress Theme Generator Create Custom Themes!
My Little Network
LD is offline   Reply With Quote