Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
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
 
Old January 23rd, 2004, 10:37 AM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is there a PHP Equivalent of postback?

As part of my undergraduate project (Now intranet app, using PHP and MySQL) I need to create a lock out mechanism for the database. If the user gets their password wrong X times, then their account is lock out. I know in ASP there is a postback function. Is there an equivalent in PHP, and if so what is it?

I know how to control the number of attempts (Via a column in user table saying attempts. Upon login user table looks at "attempts" column. If attempts >=X (X being the number chosen by the database administrator (Or root user)) then the account is disabled (Thank you Enum!) but I need postback equivalence. Can anyone help?

Many thanks

---
David Thorne, Student
UK
__________________
---
David Thorne, Student
UK
 
Old January 28th, 2004, 06:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey David,

Sorry no one's replied yet. I've read a little bit about postback, but PHP doesn't natively support that functionality, since it seems to be a blending of both client- and server-side functionality.

As long as you write (or have PHP generate) the appropriate javascript to handle resubmitting a form at the appropriate time, there's no reason why you can't mimic ASP's postback functionality.

In fact, most PHP scripts are written such that the same script that generates the form usually receives the submitted data -- the form method is set to post and the action is set to $_SERVER['PHP_SELF']:

  echo "<form method=\"post\" action=\"{$_SERVER['PHP_SELF']}\">\n";



Take care,

Nik
http://www.bigaction.org/
 
Old September 7th, 2004, 06:18 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, there is PostBack in PHP, but more than to PostBack and of cours not similar to PostBack.

http://www.php-india.net/Akaar/?op=BackFire


The concept which provides this and more interesting features in PHP is called "Akaar"

it is a PHP Application Development System. It is an object oriented, modular application development system for PHP using smarty template system.

You can view more details on this

http://www.php-india.net/Akaar/






Similar Threads
Thread Thread Starter Forum Replies Last Post
description != '' equivalent XMLUser XSLT 3 March 1st, 2008 12:58 PM
"HtmlAnchor" equivalent arunagottimukkala ASP.NET 1.0 and 1.1 Professional 0 November 5th, 2007 06:14 AM
Index server equivalent in PHP madhukp PHP How-To 2 December 2nd, 2004 10:18 AM
javascript equivalent lcsgeek Classic ASP Basics 0 September 22nd, 2003 07:17 AM
ASP Equivalent U.N.C.L.E. Classic ASP Basics 3 July 8th, 2003 03:05 AM





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