|
|
|
|
|
|
|
|
|
#3 |
|
wtfwjd?
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. of " . $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");
|
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|