Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / September 2003



Tip: Looking for answers? Try searching our database.

problem with deleteing record thru Radio Button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A. J. - 28 Sep 2003 13:21 GMT
hi,
whne I used this code to delete record from MS access DB thru Radio
Button I'm always got a balnk ID

===
<%
ID = request("ID")
MySQL2= "Delete from soon where ID = " & ID & ""
'conn.Execute(MySQL2)
response.write(MySQL2)
'response.redirect("soon1.asp")
%>
===
Any idea ?

A. J.
Ken Schaefer - 28 Sep 2003 13:40 GMT
What is the name of your radio button (ie, show us the HTML source of your
webpage where the radio button is)?

Cheers
Ken

: hi,
: whne I used this code to delete record from MS access DB thru Radio
[quoted text clipped - 15 lines]
: *** Sent via Developersdex http://www.developersdex.com ***
: Don't just participate in USENET...get rewarded for it!
A. J. - 28 Sep 2003 14:02 GMT
Thanks for your reply
here is the code
===
<html>
<head>
<title></title>
</head>
<body>
<Form name="MyForm" method="POST" action="soon-del.asp">
<input type="radio" value="<%=rs("ID")%>" name="ID">
<input type="submit" value="Delete" name="Del" style="font-family:
Tahoma; font-size: 10pt; color:#0000FF">
</Form>
</BODY></HTML>

===

A. J.
Ken Schaefer - 29 Sep 2003 01:57 GMT
On soon-del.asp can you do the following please?

<%
For Each Item in Request.Form

   Response.Write(Item & " = " & Request.Form(Item) & "<br>")

Next
%>

so we can see what is in the Request.Form collection.

Cheers
Ken

: Thanks for your reply
: here is the code
[quoted text clipped - 17 lines]
: *** Sent via Developersdex http://www.developersdex.com ***
: Don't just participate in USENET...get rewarded for it!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.