
-----------------------------------
Nikola
Sat Jun 21, 2008 4:03 pm

Callback help!
-----------------------------------
I am making a program that consists of a login area first and a menu second. Once an option is picked from the menu i want to have the option of going back to the menu but the only thing i can do right now is make it start all over which means going back to the login as well. Can anyone help? Thanks :)

-----------------------------------
Richard Knop
Sat Jun 21, 2008 5:18 pm

RE:Callback help!
-----------------------------------
I'm not sure I understand what you mean.

Anyways close the menu with other content in one big loop ("while" probably the most suitable) and set some suitable condition. That's how these menus work most of the time...

-----------------------------------
BigBear
Sat Jun 21, 2008 9:51 pm

Re: Callback help!
-----------------------------------
So you have loop of login. 

Loop for main menu (which will have other loops inside)
then when you exit one of the loops inside of the main menu loop it will remain in the main menu loop and return to the main menu.

-----------------------------------
Nikola
Sun Jun 22, 2008 12:27 pm

Re: Callback help!
-----------------------------------
Here is the code. I hope this helps!

Username: admin
Password: admin
*Case Sensitive*

#include 
#include 
#include 
#include 

int main()
{
      char c[10];
      FILE *file;
      char str_username [40];
      char str_password [40];
      int int_ctr = 0;
      int int_options = 0;
      char str_sendmail[400];
      int int_options2;
      char str_mailto[50];
      char str_subject[50];
      while(int_ctr 