Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
| Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 10th, 2003, 02:11 AM
Registered User
Join Date: Aug 2003
Location: sydney, nsw, Australia.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP4, Javascript & PostgreSQL

Hello P2P Members:

I have a variable that comes via a cookie. It's basically the sessionid of the logged on user.

Now, I want to take that sessionid (which is a varchar 30) and pass it to PHP command to delete a record from the dataset.

This needs to happen without any user intervention.

I have been able to write the Javasript to retrieve the contents of the Cookie. I wouldn't mind looking at an example showing how to parse out the contents.

So when I end up with the SessionID I would like to take that and pass it on to PHP to delete the record using SQL command.

Now if you have an example that even looks closely similar that would be very helpful.


Old September 10th, 2003, 12:52 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts

Why not just get the variable from the cookie from within PHP? All cookie vars sent to the web server are available to PHP in the $_COOKIE superglobal array.

Take care,


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging with PHP & Postgresql ganesh15 PHP How-To 6 April 13th, 2006 11:40 PM
JavaScript & XML & NN lmod Javascript How-To 0 August 18th, 2005 03:16 PM
Javascript && keeps turnig into && ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
problems with php4 & 5??? royp2p Beginning PHP 1 March 27th, 2005 10:05 AM
PHP4 & PHP5 sumu Beginning PHP 4 November 7th, 2004 07:30 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.