12-01-2005, 19:39
|
|
|
|
חבר מתאריך: 17.05.04
הודעות: 2,110
|
|
יש לי עוד בעיה בעוד תרגיל
אמרו לעשות אתר עם טופס שמקבל מהמשתמש את השם שלו , את המשקל ואת הגובה ואם הגובה או המשקל גבוהים מאלו שמולהו בעבר זה ירשום את זה כנגיד "הכי רזה" "הכי גבוה"
זה מה שעשיתי
קוד:
<html>
<head> </head>
<body>
<form name="info" method="get">
מהו שמך?
<input type="text" name="name" />
<br />
מהו משקלך?
<input type="text" name="weight" />
<br />
מהו גובהך?
<input type="text" name="height" />
<br />
<input type="submit" value="שלח" />
<%
If Application("weight") > Request.querystring("weight") Then
Application("weight") = Request.QueryString("weight")
Application("nameskin") = Request.QueryString("name")
End If
If Request.QueryString("height") > Application("height") Then
Application("height") = Request.QueryString("height")
Application("nametall") = Request.QueryString("name")
End If
%>
<table border="10">
<tr>
<th> הכי גבוה </th>
<th> הכי רזה </th>
<tr>
<td> <%=Application("nametall")%> בגובה של <%=Application("height")%> </td>
<td> <%=Application("nameskin")%> במשקל של <%=Application("weight")%> </td>
</table>
ה"הכי גבוה" עובד אבל ה"הכי רזה" פשוט לא עובד! אני כבר שעות מנסה להבין למה ומשנה דברים וזה פשוט לא מצליח!
_____________________________________
I sit and I stare
I know that I'll soon go mad
In my solitude
I'm praying
Dear lord above
|