Skip to main content
Inspiring
October 24, 2006
Answered

can't get DELETE to work in Power's example

  • October 24, 2006
  • 1 reply
  • 423 views
if this is a repost, apologies. I'm running dreamweaver mx2004 and have installed mx Kollection and a wamp configuration. i started in on power's book and the examples went without a hitch. but when i tried the DELETE link in his example on quotations, it sent me to a blank form. did the example a couple of times with same results. here's some of the code attached. thanks in advance for all assistance.
This topic has been closed for replies.
Correct answer hconnorjr
david,

this is what is passed:

http://localhost/php_mike/admin/quote_delete.php?quote_delete=9

and for reference, this is what is passed in the EDIT link:

http://localhost/php_mike/admin/quote_update.php?quote_id=9

eureka!

i went into code view and found where the DELETE should have read quote_id and it didn't. changed it and it works fine now. thanks. a good lesson!

but tell me, how did it get in there that way?

1 reply

Inspiring
October 24, 2006
hconnorjr wrote:
> but when i tried the DELETE link in his
> example on quotations, it sent me to a blank form. did the example a couple of
> times with same results. here's some of the code attached.

The problem is almost certainly in the DELETE link, not in the code that
you have posted. Is the quote_id getting passed to the delete page
correctly in the URL query string?

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
hconnorjrAuthorCorrect answer
Inspiring
October 24, 2006
david,

this is what is passed:

http://localhost/php_mike/admin/quote_delete.php?quote_delete=9

and for reference, this is what is passed in the EDIT link:

http://localhost/php_mike/admin/quote_update.php?quote_id=9

eureka!

i went into code view and found where the DELETE should have read quote_id and it didn't. changed it and it works fine now. thanks. a good lesson!

but tell me, how did it get in there that way?