![]() |
# 5 |
תודה על תרומתך.
|
כל הasp:
קוד:
<% set c=Server.CreateObject("adodb.connection") set r=Server.CreateObject("adodb.recordset") c.connectionString="provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &Server.MapPath("\..\db.mdb") & "" c.open ida = Request.QueryString("idl") set rst=c.execute("select * from links where id = " & ida) response.write("<form action='admin_links_edit.asp' method='POST' name='edit'>") response.write("<font class='text'>שם הדף:</font>") response.write("<input type='text' name='name' maxlength='50' size='20' value='"& rst.fields("name") &"' class='textBoxSmall'><br><br>") response.write("<font class='text'>קישור לדף:</font>") response.write("<input type='text' name='link' maxlength='255' size='50' value='"& rst.fields("link") &"' class='textBoxSmall'><br><br>") response.write("<input type='submit' value='שליחה' class='textBoxSmall'><input type='hidden' name='edit' value='editing'>") response.write("</form>") action = request("edit") if action = "editing" Then set ida = Request("idl") c.execute("update links set `name` = '"&request.form("name")&"' , `link` = '"&request.form("link")&"' where id=" & ida) end if c.close Set c=nothing Set r=nothing Set rst=nothing %> set rst=c.execute("select * from links where id = " & ida) הבעיה היא עם ההגדרה של הwhere בselect. את הRequest. סידרתי . הפכתי את השורה ל PHP קוד:
קוד:
You can't write just Request, this is an object and you must use one of his properties or methods, like Request.form or Request.QueryString and so on.
__________________
Alter. |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
כלים לאשכול | |
תצורת הצגה | |
|
|