webForumDet fria alternativet

Hjälp! Fattar ingenting..

ASP

4 svar · 383 visningar · startad av Jeppeweb

Medlem sedan sep. 2006462 inlägg
Frågan#1

Hej.

Jag har verkligen grubblat över det här problemet som stött upp, fattar verkligen ingenting om hur det kan bli som det blir. Det är så att jag har en form knapp som inte fungerar, man klickar på den men inget händer.. vad jag kan se är det inge fel på koden, eftersom jag använder koden på en annan sida, och då fungerar det..

Oerhört tacksam för all hjälp..!

Medlem sedan sep. 2006462 inlägg
#2
<!-- #include file="databaskopplingar.asp" -->
<script language="JavaScript">
<!-- Begin
function popUp() {
props=window.open('tecken.asp', 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=450, height=550 left = 100, top = 100');
}
// End -->
</script><!-- #include file="databaskopplingar.asp" -->
<%
if Request.QueryString("action") = "editID2"	Then
losenord = request.form("losenord")
apanelvanster = request.form("apanelvanster")
editID2 = Session("cmid")
Connect.Execute("UPDATE medlemmar set visahemsida = ' msn = '"&msn&"', apanelvanster = '"&apanelvanster&"' WHERE ID="&editID2&"")
Response.Redirect("?page=2")
end if
%>
<%
SQL = "Select * from medlemmar WHERE ID =  '" & Session("cmid") & "'"
Set RecSet = Connect.execute(SQL)
%>
<form name="form1" method="post" action="?page=65&action=editID2">
</form>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" height="19" width="616">
<p align="center"><font color="#FF0000"><b><br>
Personligt<br>
&nbsp;</b></font></td>
</tr>
<tr>
<td class=4 height="39" width="195">Användarnamn</td>
<td class=4 height="39" width="421"><%=RecSet("anvandarnamn")%> *</td>
</tr>
<tr>
<td class=4 height="41" width="195">Lösenord</td>
<td class=4 height="41" width="421">
<input name="losenord" size="40" value="<%=RecSet("losenord")%>"type="password"></td>
</tr>
<tr>
<td class=4 height="41" width="195">Namn:</td>
<td class=4 height="41" width="421">
<input type="text" name="namn" value="<%=RecSet("namn")%>"  size="40"><br><br></td>
</tr>
<tr>
<td class=4 height="42" width="195">Ålder:</td>
<td class=4 height="42" width="421">
<select class="selectbox" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; FONT-SIZE: 10px; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; FONT-FAMILY: verdana,arial,helvetica,geneva" name="fodd" size="1">
<option selected value="<%=RecSet("fodd")%>"><%=RecSet("fodd")%></option>
<option value="10">10</option>
<option value="11">11</option>
<option value="70">70</option>
</select>&nbsp;<br><br></td>
</tr>
<tr>
<td class=4 height="41" width="195">Word:</td>
<td class=4 height="41" width="421">
<input type="text" name="intressen" value="<%=RecSet("intressen")%>"  size="40"><br><br></td>
</tr>
<tr>
<td class=4 height="41" width="195">Bor:</td>
<td class=4 height="41" width="421">
  <b>
  <font size="1" face="Verdana">
          <select size="1" name="bor" style="font-family: Verdana; font-size: 10px; font-weight:bold">
            <option selected value="<%=RecSet("bor")%>"><%=RecSet("bor")%>
			</option>
            <option value="Ale">Ale</option>
            <option value="Alingsås">Alingsås</option>
            <option value="Alvesta">Alvesta</option>
            <option value="Aneby">Aneby</option>
            <option value="Arboga">Arboga</option>
          </select></font></b><br><br></td>
</tr>
<tr>
<td class=4 height="57" width="195">Vill du visa din Hemsida i Profilen?</td>
<td class=4 height="57" width="421">
<%
if RecSet("visahemsida") = 1 then
response.write "<input type=radio name=visahemsida value=1 checked> Ja <input type=radio name=visahemsida value=0> Nej"
else
response.write "<input type=radio name=visahemsida value=1> Ja <input type=radio name=visahemsida value=0 checked> Nej"
end if
%>
</tr>
</tr>
<tr>
<td class=4 height="41" width="195">Hemsida</td>
<td class=4 height="41" width="421">
<input name="hemsida" value="<%=RecSet("hemsida")%>" size="40">&nbsp;
</td>
</tr>
<tr>
<td class=4 height="57" width="195">Vill du visa din E-mail i Profilen?</td>
<td class=4 height="57" width="421">
<%
if RecSet("visaemail") = 1 then
response.write "<input type=radio name=visaemail value=1 checked> Ja <input type=radio name=visaemail value=0> Nej"
else
response.write "<input type=radio name=visaemail value=1> Ja <input type=radio name=visaemail value=0 checked> Nej"
end if
%>
</tr>
<tr>
<td class=4 height="41" width="195">E-mail:</td>
<td class=4 height="41" width="421">
<input type="text" name="email" value="<%=RecSet("email")%>"  size="40"><br><br></td>
</tr>
<tr>
<td class=4 height="57" width="195">Vill du visa din MSN i Profilen?</td>
<td class=4 height="57" width="421">
<%
if RecSet("visamsn") = 1 then
response.write "<input type=radio name=visamsn value=1 checked> Ja <input type=radio name=visamsn value=0> Nej"
else
response.write "<input type=radio name=visamsn value=1> Ja <input type=radio name=visamsn value=0 checked> Nej"
end if
%>
</tr>
<tr>
<td class=4 height="41" width="195">MSN:</td>
<td class=4 height="41" width="421">
<input type="text" name="msn" value="<%=RecSet("msn")%>"  size="40"><br><br></td>
</tr>
<tr>
<td class=4 height="42" width="195">Webcam:</td>
<td class=4 height="42" width="421">
<select class="selectbox" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; FONT-SIZE: 10px; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; FONT-FAMILY: verdana,arial,helvetica,geneva" name="webcam" size="1">
<option selected value="<%=RecSet("webcam")%>"><%=RecSet("webcam")%></option>

<option value="1">Ja</option>
<option value="0">Nej</option>

</select>&nbsp;<br><br></td>
</tr>
<tr>
<td colspan="2" class=4>
&nbsp;</td>
</tr>

<td colspan="2" height="19" width="616"><b>&nbsp;TIO GREJJER OM DIG!</b></td>
	</tr>
	<tr>
<td colspan="2" height="19" width="616">
<table id="tOptions" style="WIDTH: 100%" border="0">
	<tr>
		<td class="red" style="WIDTH: 33%">PERSONLIGHET</td>
		<td class="red" style="WIDTH: 33%">CIVILSTÅND</td>
		<td class="red" style="WIDTH: 33%">SYSSELSÄTTN.</td>
	</tr>
	<tr>
		<td style="WIDTH: 33%">
		<select class="text" id="personlighet" style="WIDTH: 100%" name="personlighet" size="1">
		<option selected value="<%=RecSet("personlighet")%>"><%=RecSet("personlighet")%>
		</option>
		<option value="öppen">öppen</option>
		</select></td>
		<td style="WIDTH: 33%">
		<select class="text" id="civilstond" style="WIDTH: 100%" name="civilstond" size="1">
		<option selected value="<%=RecSet("civilstond")%>"><%=RecSet("civilstond")%>
		</option>
		<option value="singel">singel</option>
		<option value="upptagen">upptagen</option>
		</select></td>
		<td style="WIDTH: 33%">
		<select class="text" id="syssel" style="WIDTH: 100%" name="syssel" size="1">
		<option selected value="<%=RecSet("syssel")%>"><%=RecSet("syssel")%>
		</option>
		<option value="jobbar">jobbar</option>
		<option value="univ / högskola">univ / högskola</option>
		</select></td>
	</tr>
	<tr>
		<td class="red" style="WIDTH: 33%">BOENDE</td>
		<td class="red" style="WIDTH: 33%">HÅRFÄRG</td>
		<td class="red" style="WIDTH: 33%">KROPP</td>
	</tr>
	<tr>
		<td style="WIDTH: 33%">
		<select class="text" id="boende" style="WIDTH: 100%" name="boende" size="1">
		<option selected value="<%=RecSet("boende")%>"><%=RecSet("boende")%>
		</option>
		<option value="lägenhet">lägenhet</option>
		</select></td>
		<td style="WIDTH: 33%">
		<select class="text" id="horferg" style="WIDTH: 100%" name="horferg" size="1">
		<option selected value="<%=RecSet("horferg")%>"><%=RecSet("horferg")%>
		</option>
		<option value="blont">blont</option>
		</select></td>
		<td style="WIDTH: 33%">
		<select class="text" id="kropp" style="WIDTH: 100%" name="kropp" size="1">
		<option selected value="<%=RecSet("kropp")%>"><%=RecSet("kropp")%>
		</option>
		<option value="gosig">gosig</option>
		</select></td>
	</tr>
	<tr>
		<td class="red" style="WIDTH: 33%">MUSIKSMAK</td>
		<td class="red" style="WIDTH: 33%">GILLAR</td>
		<td class="red" style="WIDTH: 33%">&nbsp;</td>
	</tr>
	<tr>
		<td style="WIDTH: 33%">
		<select class="text" id="musiksmak" style="WIDTH: 100%" name="musiksmak" size="1">
		<option selected value="<%=RecSet("musiksmak")%>"><%=RecSet("musiksmak")%>
		</option>
		<option value="d&amp;b">d&amp;b</option>
		<option value="hiphop">hiphop</option>
		</select></td>
		<td style="WIDTH: 33%">
		<select class="text" id="gillar" style="WIDTH: 100%" name="gillar" size="1">
		<option selected value="<%=RecSet("gillar")%>"><%=RecSet("gillar")%>
		</option>
		<option value="tjejer">tjejer</option>
		</select></td>
		<td style="WIDTH: 33%">&nbsp;</td>
	</tr>
	<tr>
		<td class="red" style="WIDTH: 33%">INTRESSEN</td>
		<td class="red" style="WIDTH: 33%">KLÄDER</td>
		<td class="red" style="WIDTH: 33%">&nbsp;</td>
	</tr>
	<tr>
		<td style="WIDTH: 33%">
		<select class="text" id="intressen2" style="WIDTH: 100%" name="intressen2" size="1">
		<option selected value="<%=RecSet("intressen2")%>"><%=RecSet("intressen2")%>
		</option>
		<option value="data">data</option>
		</select></td>
		<td style="WIDTH: 33%">
		<select class="text" id="klader" style="WIDTH: 100%" name="klader" size="1">
		<option selected value="<%=RecSet("klader")%>"><%=RecSet("klader")%>
		</option>
		<option value="gucci">gucci</option>
		</select></td>
		<td style="WIDTH: 33%">&nbsp;</td>
	</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="19" width="616">

</tr>
<% if RecSet("mainadmin") = "1" OR RecSet("ipadmin") = "1" OR RecSet("nyhetsadmin") = "1" OR RecSet("arkivadmin") = "1" OR RecSet("bildadmin") = "1" then  %>
<tr>
<td colspan="2" height="19" width="616">&nbsp;
</td>
</tr>
<tr>
<td colspan="2" height="19" width="616">&nbsp;
</td>
</tr>
<% end if %>
<tr>
<td height="19" width="195"><font color="#FF0000"><input type="submit" name="form1" value="Spara inställningarna"></font></form></td>
<td height="19" width="421">
<p align="center"></td>
</tr>
<tr>
<td align="right" height="26" width="195">
<p align="center"></td>
</tr>
</table>
<% connect.close %>
Medlem sedan sep. 2006462 inlägg
#3

Var tvungen o korta ned koden en massa eftersom den inte fick plats...

HELP ME!

Medlem sedan feb. 20011 198 inlägg
#4

Ta bort </form> på rad 23.

Medlem sedan sep. 2006462 inlägg
#5

Tack :D

274 ms totalt · 4 externa anrop · v20260731065814-full.6fe65c25
135 ms — deklarationer (db)
0 ms — hämta statistik (cache)
136 ms — hämta tråd, inlägg och bilagor (db)
128 ms — ändringar (db)