Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //File:TestForm.FCL
- [#FCL
- //Variables
- @name;
- @email;
- @email-conf;
- @username;
- @pass;
- @pass_conf;
- //Presets
- <sqlconnect:sql/settings.FCLconfig>
- <FormBoxes:styles/main-style.FCLstyle>
- form(
- table(
- row(
- col(
- txt("Please enter your name:");
- )
- col(
- txtbox("%name%", !style:preset=FormBoxes);
- )
- )
- row(
- col(
- txt("Please enter your e-mail:");
- )
- col(
- txtbox("%email%", !style:preset=FormBoxes);
- )
- )
- row(
- col(
- txt("Confirm your e-mail:");
- )
- col(
- txtbox("%email-conf%", !style:preset=FormBoxes);
- )
- )
- row(
- col(
- txt("Choose a username:");
- )
- col(
- txtbox("%username%", !style:preset=FormBoxes);
- )
- )
- row(
- col(
- txt("Choose a password:");
- )
- col(
- txtbox("%pass%", !style:preset=FormBoxes);
- )
- )
- row(
- col(
- txt("Re-type password:");
- )
- col(
- txtbox("%pass-conf%", !style:preset=FormBoxes);
- )
- )
- row(
- col()
- col(
- button(!type=submit);
- )
- )
- )
- )
- //Submitting Form
- if:!submit:(
- if:(@email==@email-conf) && (@pass==@pass-conf): (
- create(!sql:preset=sqlconnect);
- ) else if(:@email=@email-conf) && (@pass==@pass-conf): (
- print("The email entered did not match.");
- return:("form");
- ) else if(:@email==@email-conf) && (@pass=@pass-conf): (
- print("The password entered did not match.");
- return:("form");
- )
- )
- #]
- //////////////////////////////////////////////////////////////////////////////////////////////////
- //File:settings.FCLconfig
- [#FCL
- //Variables
- @host:127.0.0.1;
- @user:root;
- @pass:fortress105;
- //Configuration and SQL stuff
- mysqldbconnect("%host%, %user%, %pass%", !sql:preset=localhost\AutoTableCreatorBETA.FCLconfig);
- #]
- //////////////////////////////////////////////////////////////////////////////////////////////////
- //File:main-style.FCLstyle
- [#FCL
- width^60px;
- height^16px;
- font^Arial;
- align^left;
- padding^2px;
- spacing^0px;
- margin^0px;
- background^#838383;
- color^#FFFFFF;
- border^2px #000000;
- #]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement