Hi all,
I have a quick question about form classes. I am following this
tutorial: http://www.evolt.org/article/PHP_Log...384/index.html
Basically, it is a login system. There is a session.php and a
process.php that is called when validating a login. The problem I am
having, is on my login form I fill out the fields and then the <form>
calls process.php. In process.php, the $form->num_errors is being set
correctly. Then, it redirects back to my login form.
Well, for some reason I am losing $form->num_errors when returning to
the login form. I am new at this, so I am not sure what is causing
it.
Quick rundown of what I think is happening...
login.php has 'include ('session.php') ' at the top...
The $form is created at the bottom of session.php...
login.php submits to process.php...
process.php also has 'include ('session.php') ' at the top...
if login is incorrect, process.php calls 'header("Locati on: ".
$_SERVER['HTTP_REFERER']);'
login.php is loaded and $form is empty
Can anyone give me an idea of where to start looking?
Thanks 3 1346
On Aug 31, 1:15 pm, stacey <monkeym...@gma il.comwrote:
Hi all,
I have a quick question about form classes. I am following this
tutorial:http://www.evolt.org/article/PHP_Log...n_Features/17/...
Basically, it is a login system. There is a session.php and a
process.php that is called when validating a login. The problem I am
having, is on my login form I fill out the fields and then the <form>
calls process.php. In process.php, the $form->num_errors is being set
correctly. Then, it redirects back to my login form.
Well, for some reason I am losing $form->num_errors when returning to
the login form. I am new at this, so I am not sure what is causing
it.
Quick rundown of what I think is happening...
login.php has 'include ('session.php') ' at the top...
The $form is created at the bottom of session.php...
login.php submits to process.php...
process.php also has 'include ('session.php') ' at the top...
if login is incorrect, process.php calls 'header("Locati on: ".
$_SERVER['HTTP_REFERER']);'
login.php is loaded and $form is empty
Can anyone give me an idea of where to start looking?
Thanks
Looks like your losing state between your redirect. Make sure that
the the value for $form->num_errors are either being passed with a
request method (POST/GET/SESSION) and 'rebuilt' within
session.php...o r that $form is being serialized and passed, then
unserialized.
Thanks for the reply. Sadly, 30 minutes later, I figured out the
problem. It's called Zone Alarm...lol! For whatever reason, it was
blocking my info on the development machine. As soon as I turned it
off, everything worked as it should. Just thought I'd post that in
case someone else runs into a similar problem.
On Aug 31, 7:08 pm, stacey <monkeym...@gma il.comwrote:
Thanks for the reply. Sadly, 30 minutes later, I figured out the
problem. It's called Zone Alarm...lol! For whatever reason, it was
blocking my info on the development machine. As soon as I turned it
off, everything worked as it should. Just thought I'd post that in
case someone else runs into a similar problem.
awesome, thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve Jorgensen |
last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of
multiple parameters in a Property Let procedure to pass dimensional
arguments on the basis that, although it works, it's not obvious how the
code works if you don't know the intricacies of the Property Let/Get
syntax. Likewise, I dislike (and code to minimize the use of) the VB/VBA
syntax of returning a value by referring to the function name as if it were
a...
|
by: Mathias L. |
last post by:
I have two questions for which I couldnt find answer:
If I programaticaly close DialogForm (calling Close()), is it enough or do I
have to dispose it as MS.NET help says?
Also, in overriden onPaint method, do I have to dispose pens, brushes and
graphics object or do they got disposed by Framework?
|
by: 42 |
last post by:
Hi,
Stupid question:
I keep bumping into the desire to create classes and properties with the
same name and the current favored naming conventions aren't
automatically differentiating them... (both are "Pascal Case" with no
leading or trailing qualifiers).
For example... I'll be modelling something, e.g. a computer, and I'll
|
by: Peter M. |
last post by:
Hi all,
I'm currently designing an n-tier application and have some doubts about my
design.
I have created a Data Access layer which connects to the database (SQL
Server) and performs Select, update, delete and inserts. I use dataset
objects to pass data to and from the DAL.
In my GUI (windows forms), I use databinding to bind controls to a datatable
|
by: Roland |
last post by:
The following issue is puzzling me:
There are 2 ways of writing the code below:
....
Dim fnt as Font = New Font(...)
DrawString(myText, fnt,...)
fnt.dispose().
or
DrawString(myText, New Font(...),...)
| |
by: mg |
last post by:
I'm migrating from VB6 and have a question about using 'Using' and the
best way to use it.
Here is a example of a small bit of code:
dbConx("open")
Using CN
Dim CMD As New OleDbCommand(sSQL, CN)
Dim DR As OleDbDataReader = CMD.ExecuteReader()
|
by: davetelling |
last post by:
I am not a programmer, I'm an engineer trying to make an interface to a
product I'm designing. I have used C# to make a form that interrogates the
unit via the serial port and receives the data. I want to be able to draw
lines in a picturebox based upon certain data points I have received. I
dragged a picturebox from the toolbar onto my form, but after having gone
through the help files, looking online and trying a variety of things, I...
|
by: wageslave |
last post by:
Hi folks,
I have a question about using consequtive combo boxes on a form.
I am designing a basic library database for a small community organisation which deals with inner city problems and issues.
They don't have a librarian on staff so I am trying to make things as easy as possible for them. To help them catalogue new items I have developed a set of 'categories' and 'classes' for all new stock. 'Categories' are the wide subject...
|
by: Brad Pears |
last post by:
Here is a simple OO design question...
I have a Contract class. The user can either save an existing contract or
they start off fresh with a blank contract, fill in the data and then save a
"new" contract.
I have a method in my contract class called "Save" which is called like
this...
dim oContract as new Contract
|
by: pat.saunders |
last post by:
Hi,
I am using Visual Studio 2005 and am using Visual C#. I notice
that the program.cs creates an instance of a form and runs it. I have
a PictureBox in the form and a Class File x.cs and in the Class file
x.cs want to access some of the picturebox parameters e.g size but I
do not have access to these parameters. I could write a function in
form.cs to return these parameters but as I don't have access to an
instance of form I cannot call...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |