Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.


Reply With Quote
  #2 (permalink)  
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,

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:36 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.