Member Avatar
Reusable Code Snippet Python site login

This will allow you to login a website with python. After logging in, you now have access to all the pages for "members only" accessed with python. Could be handy for a myspace update program, webcrawlers, facebook(not recommended, facebook doesn't like scripts), and other things. Some knowledge of HTML is recommended.

Member Avatar
+0 forum 9
Member Avatar

Right now i have 6 files: Main.php = The login page Info.php = The first page seen after login ForgetPass1.php = The first page for password recovery ForgetPass2.php = The first page for password recovery functions.php = Holds all the php functions used in all websites including: -logout() -confirmUser() -SQL_Connection() -checkLogin() -displayLogin() -displayPassForm1() -displayPassForm2() -checkPassForm1() -checkPassForm2() -gentempPass() -redirect() -stripInjection -mysql_prep -onlyInt() posts.php - Holds all the post checking and alittle javascript including -post for login -post for password recovery form 1 -post for password recovery form 2 Basically, i require functions.php and posts.php on all main, info, forgetpass1 and forgetpass2. …

Member Avatar
+0 forum 6
Member Avatar

Hi All, I have a page with a PHP insert form that posts relevant info to the SQL database. At the same time the key value "reg_id" is auto incremented by the DB. How do I get new auto incremented value that has been posted so that I can use it to pass to the next page? I have posted the code below if this helps Many thanks John PS. I'm using Adobe DW CS4 [CODE] <?php require_once('../Connections/venture.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = …

Member Avatar
+0 forum 1
Member Avatar

Ok, I currently have three different pages in play here. [LIST=1] [*]Cigar.php - This is the individual cigar page, dynamically generated based on a GET Value [*]Cigarreview.php - This is where a user goes to review a cigar. It has a drop down menu that pulls from the DB and based on which one the user selects, this value is passed to the #3 in the form of a POST value [*]ProcessCigarReview - The script that actually processes the review, updates the db, works voodoo magic, etc [/LIST] I would like to add an option on #1 to "Rate this …

Member Avatar
+0 forum 8
Member Avatar

Hi everyone, I'm a moderately experienced C++ programmer who's trying to do a little socket work. Don't ask why, but I'm to write a program which, when activated, sends an HTTP POST request to a remote end server. The socket part of the work is done and successfully tested; all I have to do is get the HTTP header exactly right. Unfortunately, the resources I've consulted online aren't that helpful and I can't tell where I'm screwing up the header. Can someone quickly spot the error or recommend a solid resource which will really detail what I want to do? …

+0 forum 0

The End.