Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

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

Participant ,
Oct 24, 2006 Oct 24, 2006
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.
TOPICS
Server side applications
395
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Oct 24, 2006 Oct 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?

Translate
LEGEND ,
Oct 24, 2006 Oct 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 24, 2006 Oct 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 24, 2006 Oct 24, 2006
LATEST
hconnorjr wrote:
> but tell me, how did it get in there that way?

Er, you put it there. I certainly didn't. :)

One of the most common causes of this sort of mistake is typing
something that you *think* is right, but should, in fact, be something else.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines