Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-04-2014, 03:48 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 23,424
IntoRain is on a distinguished road
Default

I like to use forms the same way it's used in registerview.php. I find it more simple and I think it's a good example.

Unless it's ajax, you don't need to have the action code in a different function at all:

In registerview.php you will notice this line:

$securityField->add(new Button("Register", "submit", "submit"));

The form is sending through POST and you might notce the "submit" in the button above:

if($mysidia->input->post("submit"){
//means the button was clicked, check sent data here
}

And all inputs can be checked like that:

$requiredField->add(new TextField("username"));
$mysidia->input->post("username");//in register.php

---

You want a class in the classes folder or to create a new page?
__________________


asp.net stole my soul.

Last edited by IntoRain; 07-04-2014 at 03:50 PM.
Reply With Quote
 

Tags
formbuilder


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with the class controller Isura Questions and Supports 4 04-09-2014 04:21 PM
Problem: smarty class 1.3.4 draugluin Questions and Supports 8 11-15-2013 03:29 AM
Critical Errors (PDO Class not Found) LucasA33 Questions and Supports 2 11-21-2012 06:38 PM


All times are GMT -5. The time now is 05:25 PM.

Currently Active Users: 2077 (0 members and 2077 guests)
Threads: 4,082, Posts: 32,047, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636