Style Select

Started on the old forum in August 2007 · view the original in the archive · old links redirect here

12 replies · 1,360 views · started 19 years ago · 1 min read

2 participants
Guest #2

hi there, i want to be able to selectm a css them from a menu on the front page so that members can choose a theme they like, How Would i Go about doing this? thnaks

here is it

on your index.php edit to the main page where the user enter their detail to log in and put CODE echo "<form action="login.php" method="get">"; echo "Username:"; echo " "; echo "<input type="text" name="uid" size="8" maxlength="15" />"; echo " "; echo "Password:"; echo " "; echo "<input type="password" name="pwd" size="8" maxlength="15" />"; echo " "; echo "<input type="hidden" name="svw" value="$svw"/>"; $themes = mysql_query("SELECT id, name, theme FROM ibwf_themes ORDER BY id, name"); echo "Theme: <select name="theme">"; while($theme=mysql_fetch_array($themes)) { echo "<option value="$theme[2]">$theme[1]</option>"; } echo "</select> "; echo "<input type="submit" value="login"/>"; echo "</form>";

Guest #3

now u need to edit the login.php page below this

CODE}else{ echo dberror($mime); } }

add

CODE$theme = $_POST['theme']; place this code below

CODE$res = mysql_query("UPDATE ibwf_users SET theme='".$theme."' WHERE id='".$uid."'");

below this line

if($utru[0]>0) {

Guest #4

try this and tell me if it works ok

Guest #6

pmpl i thought so lol... can i see the site

Guest #8

yeh go for it it's http://barmy-army.uk.to

hmm i don't have such script pmpl it look simular to lavalair script maybe my coding will help change up the sql and stuff

SpiderWap Lead · 622 posts #10

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@barmy-army.uk.to and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.37 Server at barmy-army.uk.to Port 80

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close