Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Passing a variable
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Passing a variable

 Post Reply Post Reply
Author
firestorm View Drop Down
Newbie
Newbie


Joined: 09 April 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote firestorm Quote  Post ReplyReply Direct Link To This Post Topic: Passing a variable
    Posted: 09 April 2003 at 1:22am

Hi there

I followed the tutorial on the guestbook very closely, basically just adding a field in the DB to suit my needs.  My problem comes with the delete routine.  The file where i choose the record i want to delete works fine, but when i pass the index number of the record to be deleted to the actual file which does the deleting, i get the page cannot be found.

ie. DBdelete?2 or any other integer give me page cannot be found.

If i hardcode the integer into DBdelete, it deletes the right record.  If I try to run DBdelete, it crashes because i have no supplied it with a number.

Any help would be appreciated.  Thank you for your time.

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2003 at 6:48am

are you sending it in a querystring ..

because DBdelete?2 needs to be something like DBdelete?ID=2

notice the red section .. you are missing .. it might not be ID it might be something else ..... i think thats the problem

Back to Top
firestorm View Drop Down
Newbie
Newbie


Joined: 09 April 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote firestorm Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2003 at 12:17pm

Yes, you are right.  That is exactly what the url is.  It is DBdelete?ID=2.  I entered it wrong in my initial post.  If anyone would like to see what happens, the files in question are

http://68.144.208.71/DBdeletechoice.asp

which passes to

http://68.144.208.71/DBdelete.asp

 

Thanks for your reply.

Back to Top
glypher View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 25 March 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote glypher Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2003 at 12:23pm

you're passing it to DBdelete

it should be DBdelete.ASP

glypher said so.

GainesvilleBands.com
Back to Top
firestorm View Drop Down
Newbie
Newbie


Joined: 09 April 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote firestorm Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2003 at 1:24pm
Woohoo!!  It works.  Thankyou very much for your help.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.