•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,171 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,874 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 618 | Replies: 3
![]() |
•
•
Join Date: Nov 2005
Posts: 44
Reputation:
Rep Power: 3
Solved Threads: 0
hi there i am developing a website, where users can register to become members however, i have to write operations how the system will add a user, I have been told to do it in psuedo code, but i dnt know psuedo code. is there any other way this can be done,
the ad user fields are Forname, Surname, Email, Password
I would appreciate if someone could show me how to do this so i can do the rest
the ad user fields are Forname, Surname, Email, Password
I would appreciate if someone could show me how to do this so i can do the rest
•
•
Join Date: Oct 2006
Location: Beijing
Posts: 30
Reputation:
Rep Power: 2
Solved Threads: 0
Pseudo code (as far I know) is basically like this:
I used to write things like this...paste it into my code editor, once I'm happy, and then use it at comments with the actuall valid code following each line.
If the user did not enter his name Warn user by message box Focus on name textbox exit the method If the user did not enter a password Warn user by message box Focus on password textbox exit the method Try to connect to database If connection to database fails Show error in messabox exit the method
Last edited by VanPetrol : Mar 27th, 2007 at 10:43 am.
If you want to use CSS to design Web sites you can't do it in a half-baked way. You are in or you're not in. - Charles Wyke-Smith
•
•
Join Date: Mar 2007
Posts: 17
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
Pseudo code (as far I know) is basically like this:
I used to write things like this...paste it into my code editor, once I'm happy, and then use it at comments with the actuall valid code following each line.If the user did not enter his name Warn user by message box Focus on name textbox exit the method If the user did not enter a password Warn user by message box Focus on password textbox exit the method Try to connect to database If connection to database fails Show error in messabox exit the method
in code...
if(empty($_POST['username'])){echo "Sorry, you need to enter a username.";
//do focus here
exit();
if(empty($_POST['password'])){echo "You need to enter a password.";
// do focus here
exit();
if(mysql_connect('shizz','nizz','wizz')){"Success!";
}else{die("sorry, no connection!");
}something like that really...
•
•
Join Date: Oct 2006
Location: Beijing
Posts: 30
Reputation:
Rep Power: 2
Solved Threads: 0
This might help clear things up a bit
If you want to use CSS to design Web sites you can't do it in a half-baked way. You are in or you're not in. - Charles Wyke-Smith
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Image read and write operations in turbo C (C)
- DBA Network Operations (Software Development Job Offers)
- file operations in c (C)
- bitwise operations in C (C)
- Multiple operations from 2 inputs. (Java)
Other Threads in the PHP Forum
- Previous Thread: PHP Help needed badly
- Next Thread: Parse error: parse error, unexpected $end


Linear Mode