Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 11th, 2004, 04:05 PM
Registered User
Join Date: Aug 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to matrygg Send a message via Yahoo to matrygg
Default calls to php classes from javascript


I have been given a project which I _thought_ was in PHP, but apparently has to involve a login script that is in javascript. I've never really done anything with javascript, and I'm wondering if there's a way to call a PHP class from javascript. Any info you could give me would be appreciated -- I'm still trying to learn how the code is set up for this project, so there's nothing that I don't necessarily need or not need.



Reply With Quote
  #2 (permalink)  
Old August 11th, 2004, 04:57 PM
Friend of Wrox
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

There isn't any direct way for a client-side scripting language to communicate with a server language, except perhaps some special IE mumbo-jumbo (you know as much as I).

The login script, does it actually log users in with JavaScript? It validates the names with it? That's highly insecure, if so. Anyone that knows how to click "View Source" can look at your passwords.

My guess is that it does some pre-submit work and then submits the form to PHP.



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
php Classes returning a value imryn Beginning PHP 1 October 22nd, 2007 07:14 PM
php and javascript rakesh nair Pro PHP 1 March 21st, 2007 05:58 PM
javascript with php kuehhc Beginning PHP 8 February 1st, 2005 10:59 PM
How to use javascript with php? raichand_ray PHP How-To 2 November 12th, 2004 06:41 AM
PHP with Javascript Droobles Pro PHP 1 February 17th, 2004 03:08 PM

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