happy13

unable to login to website, advice please

16 posts in this topic

Hi guys,

Im a beginner with autoit, I have the following code which I put together using also FF and inspect element on the website I want to load so that I enter the correct IDs:

#include <ie.au3>
$oIE = _IECreate ("https://clients.mindbodyonline.com/classic/home?studioid=35799")
$oForm = _IEFormGetObjByName ($oIE, "frmLogonTop")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "requiredtxtUserName")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "requiredtxtPassword")
$uname="abraka"
$pwd="dabraka"
_IEFormElementSetValue ($oQuery1,$uname)
_IEFormElementSetValue ($oQuery2,$pwd)
$oButton=_IEGetObjById($oIE,"")
_IEAction ($oButton, "btnLogin")
_IELoadWait($oIE,0)

It opens the website and then shows me these errors, it does not seem to even try to log in.:

>Running:(3.3.14.2):C:\Program Files\AutoIt3\autoit3.exe "C:\Program Files\AutoIt3\testing\openmindinIE.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-2 Warning from function _IEFormGetObjByName, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementSetValue, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementSetValue, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Warning from function _IEGetObjById, $_IESTATUS_NoMatch ()
--> IE.au3 T3.0-2 Error from function _IEAction(btnLogin), $_IESTATUS_InvalidDataType
+>23:30:19 AutoIt3.exe ended.rc:0
+>23:30:19 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 12.5


Any advice about what i did wrong and how can I make it working?

 

Thanks!

 

Share this post


Link to post
Share on other sites



The website uses frames. You'll need to get the frame object before you can access the form.

Share this post


Link to post
Share on other sites

Any advice about what i need to see/study in order to be able to do that? or some examples how it's used? Thanks!

Share this post


Link to post
Share on other sites

I tried to change it to first get the frame but not sure whats the right way?

#include <ie.au3>
$oIE = _IECreate ("https://clients.mindbodyonline.com/classic/home?studioid=35799")
$oFframe = _IEFrameGetCollection($oIE, 0)
$oForm = _IEFormGetObjByName ($oFrame, "frmLogonTop")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "requiredtxtUserName")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "requiredtxtPassword")
$uname="abraka"
$pwd="dabraka"
_IEFormElementSetValue ($oQuery1,$uname)
_IEFormElementSetValue ($oQuery2,$pwd)
$oButton=_IEGetObjById($oIE,"")
_IEAction ($oButton, "btnLogin")
_IELoadWait($oIE,0)

Now it shows the following after I run it:

Running:(3.3.14.2):C:\Program Files\AutoIt3\autoit3.exe "C:\Program Files\AutoIt3\testing\openmindinIE01.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
"C:\Program Files\AutoIt3\Include\ie.au3" (674) : ==> The requested action with this object has failed.:
Return SetError($_IESTATUS_Success, $oObject.document.parentwindow.frames.length, $oObject.document.parentwindow.frames.item($iIndex))
Return SetError($_IESTATUS_Success, $oObject.document.parentwindow.frames.length, $oObject.document.parentwindow.frames^ ERROR
->08:56:35 AutoIt3.exe ended.rc:1
+>08:56:35 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 25.1

What means that error, what is not correct pls?

Thanks!

 

 

 

Share this post


Link to post
Share on other sites

one of the lines above has a typo I made while I was pasting it here, the correct line is of course:

$oFrame = _IEFrameGetCollection($oIE, 0)

Share this post


Link to post
Share on other sites

Did you solve you problem ?
 

btw.

try to read this:

    ie.au3 UDF with AutoIt v3.3.14.x  

and

Welcome to the forum :welcome:

 


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

thanks. no, I did not solve it yet, I must be doing something stupid and not realizing yet how its supposed to be used. first time trying to write a script in autoit after some years.

I tried to add some of those things you recommend in your link and also based on help doc but it felt like im just making a larger code harder to work with and harder to focus on so then I again reduced so that I work first with something simple and later i can add more stuff and got to this:

#include <ie.au3>
$oIE = _IECreate ("https://clients.mindbodyonline.com/classic/home?studioid=35799")
$oFrame = _IEFrameGetCollection($oIE)
$oForm = _IEFormGetObjByName ($oFrame, "frmLogonTop")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "requiredtxtUserName")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "requiredtxtPassword")
$uname="username"
$pwd="password"
_IEFormElementSetValue ($oQuery1,$uname)
_IEFormElementSetValue ($oQuery2,$pwd)
$oButton=_IEGetObjByName($oIE,"btnLogin")
_IEAction ($oButton, "click")
_IELoadWait($oIE)

>Running:(3.3.14.2):C:\Program Files\AutoIt3\autoit3.exe "C:\Program Files\AutoIt3\testing\openmindinIE01.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-2 Warning from function _IEFormGetObjByName, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementSetValue, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEFormElementSetValue, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Warning from function _IEGetObjByName, $_IESTATUS_NoMatch (Name: btnLogin, Index: 0)
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
+>11:15:23 AutoIt3.exe ended.rc:0
+>11:15:23 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 26.62

i guess im mixing wrong type if data together but not sure.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

$oFrame = _IEFrameGetCollection($oIE)
$oForm = _IEFormGetObjByName ($oFrame, "frmLogonTop")

You can not use Collection as parameter to this:

_IEFormGetObjByName

 

You must select particular one Frame.

Edited by mLipok
typo

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

Thanks a lot, I was able to correct it. Now Im still doing something wrong with these 2 lines I believe, any advice about what I need to realize please?

$oButton=_IEGetObjByName($oIE,"btnLogin")
_IEAction ($oButton, "click")
 

 

Share this post


Link to post
Share on other sites

Run your script in the Scite editor and post the results from the output window so that we can see the error(s) that are still occurring.

Share this post


Link to post
Share on other sites

Here are results, i was not able to figure it out yet, tried various things but I guess I have to see more working scripts and RTFM to understand how what works and then practise in own scripts....

>Running:(3.3.14.2):C:\Program Files\AutoIt3\autoit3.exe "C:\Program Files\AutoIt3\testing\openmindinIE01.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-2 Warning from function _IEGetObjByName, $_IESTATUS_NoMatch (Name: btnLogin, Index: 0)
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
+>13:21:25 AutoIt3.exe ended.rc:0
+>13:21:25 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 16.56

 

thanks for help!

 

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

A couple of things:

1) Review this link to learn the correct way to post code: https://www.autoitscript.com/forum/topic/150872-how-to-post-code-on-the-forum/

2) Repost your entire script

3) The issue is likely that you aren't taking the frame into account

4) Have you tried _IEFormSubmit instead of trying to click the button?

Edited by Danp2
typo

Share this post


Link to post
Share on other sites
#include <ie.au3>

$uname="username"
$pwd="password"
$oIE = _IECreate ("https://clients.mindbodyonline.com/classic/home?studioid=35799")

$oFrame = _IEFrameGetObjByName($oIE,"mainFrame")
$oForm = _IEFormGetObjByName ($oFrame, "frmLogonTop")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "requiredtxtUserName")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "requiredtxtPassword")

_IEFormElementSetValue ($oQuery1,$uname)
_IEFormElementSetValue ($oQuery2,$pwd)
$oButton=_IEGetObjByName($oIE,"btnLogin")
_IEAction ($oButton, "click")
_IELoadWait($oIE)

with result:

>Running:(3.3.14.2):C:\Program Files\AutoIt3\autoit3.exe "C:\Program Files\AutoIt3\testing\openmindinIE01.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-2 Warning from function _IEGetObjByName, $_IESTATUS_NoMatch (Name: btnLogin, Index: 0)
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
+>13:21:25 AutoIt3.exe ended.rc:0
+>13:21:25 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 16.56

 

I did not try that yet, I opened it just now in help so it will take me some time :) to figure out how its supposed to work.....

Thanks

Share this post


Link to post
Share on other sites

Thanks a lot, I was able to correct it. Now Im still doing something wrong with these 2 lines I believe, any advice about what I need to realize please?

$oButton=_IEGetObjByName($oIE,"btnLogin")
_IEAction ($oButton, "click")
 

 

This is not Name but ID

<input class="loginButton" id="btnLogin" type="button" value="Log in">

 

and this is inside FRAME so the working code is:

 

#include <ie.au3>

_IEErrorHandlerRegister(_User_ErrFunc)

$uname="username"
$pwd="password"
$oIE = _IECreate ("https://clients.mindbodyonline.com/classic/home?studioid=35799")

$oFrame = _IEFrameGetObjByName($oIE,"mainFrame")
$oForm = _IEFormGetObjByName ($oFrame, "frmLogonTop")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "requiredtxtUserName")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "requiredtxtPassword")

_IEFormElementSetValue ($oQuery1,$uname)
_IEFormElementSetValue ($oQuery2,$pwd)
$oButton=_IEGetObjByID($oFrame,"btnLogin")
_IEAction ($oButton, "click")
_IELoadWait($oIE)



; User's COM error function.
; After SetUp with ObjEvent("AutoIt.Error", ....) will be called if COM error occurs
Func _User_ErrFunc($oError)
    ; Do anything here.
    ConsoleWrite(@ScriptFullPath & " (" & $oError.scriptline & ") : ==> COM Error intercepted !" & @CRLF & _
            @TAB & "err.number is: " & @TAB & @TAB & "0x" & Hex($oError.number) & @CRLF & _
            @TAB & "err.windescription:" & @TAB & $oError.windescription & @CRLF & _
            @TAB & "err.description is: " & @TAB & $oError.description & @CRLF & _
            @TAB & "err.source is: " & @TAB & @TAB & $oError.source & @CRLF & _
            @TAB & "err.helpfile is: " & @TAB & $oError.helpfile & @CRLF & _
            @TAB & "err.helpcontext is: " & @TAB & $oError.helpcontext & @CRLF & _
            @TAB & "err.lastdllerror is: " & @TAB & $oError.lastdllerror & @CRLF & _
            @TAB & "err.scriptline is: " & @TAB & $oError.scriptline & @CRLF & _
            @TAB & "err.retcode is: " & @TAB & "0x" & Hex($oError.retcode) & @CRLF & @CRLF)
EndFunc   ;==>_User_ErrFunc

 


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

Thank you very much for your help, it works, great.

Do you have any recommendations what would be good to add to the code so that its more possibly stable? What would be good to read etc,...Im doing this so that ppl do not have to and also I dont want them to know the u/p and it is done automatically. personal security where I had some bad experience.

Thanks again :)

 

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

Thank you very much for your help, it works, great.

Do you have any recommendations what would be good to add to the code so that its more possibly stable? What would be good to read etc,...

MSDN

AUTOIT BEST CODING PRACTICE

UDF SPEC

all links from my signature :D

and all AutoIt forum posts day by day................... :geek:

Im doing this so that ppl do not have to and also I dont want them to know the u/p and it is done automatically. personal security where I had some bad experience.

Do not know what you mean.

 

Thanks again :)

You are welcome.

mLipok

Edited by mLipok

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now