Page 1 of 1

PHP newbie questions

Posted: Mon Oct 18, 2010 2:42 am
by tinks
hi, i am new with php.
if i got it right, you can create web based forms along with the interaction
with the use of php right?

i am about to make forms with (checkboxes, list, tables, tabbedpanes)
as i understand, i will make forms with HTML and the controls regarding the input and output to and from the database will be dealt with by php, right?

i have been searching for freeware ui builders and found pagebreeze but does not have tabpanes and date picker support.

how am i gonna make tabpanes? i mean can i make tabpanes, date picker with html?
please help im kind of confused coz the sources that ive searched were using javascript. can i use javascript, html and php all at the same time?

Re: PHP newbie questions

Posted: Mon Oct 18, 2010 3:18 am
by klevis miho
You will make the form with html. The form has a "submit" button. If you click the submit button the form will be sent to the server then php comes into play.
PHP controls the data that it got from the form (validation, insert into a databse etc).
With CSS you can style the page.
Javascript is for usability, which means that it can do things to ease the user experience.

Re: PHP newbie questions

Posted: Mon Oct 18, 2010 3:28 am
by requinix
With PHP you'll have to do all the work yourself. By "yourself" I don't mean you personally, but something somewhere will do the work. A lot of the work will be yours and the rest will be work you have to know and understand. It's not like .NET where you can drop in a couple controls here and there and just have everything handled automatically.

Tab panes can be done quite simply with JavaScript, if you know what you're doing. However as klevis said it's only an enhancement to the webpage. Make your stuff work without tab panes and date pickers first, then worry about making it prettier.

Or forget everything with PHP for the time being and make some HTML webpages that look and act the way you want. Stick fake information in there and don't worry about actually making it submit to a database or whatever. Once you have the appearance and behavior you want, you can fill in the rest with PHP.

Re: PHP newbie questions

Posted: Mon Oct 18, 2010 3:35 am
by tinks
kelvis and tasairis thanks so much for the reply.
i have several forms to make and most of them requires tabbedpanes.
i do plan to make the forms first so i kinda need the tabbed panes.
so without php, i can make html forms with javascript, and then later
do away with the php part?

at the moment im trying to look for freeware ui builders.. sigma visual builder has datepicker and tabbedpanes support,
but could not get it to work, pagebreeze generates a more clean code but do not have tabbed panes and datepicker,
so i though of manually putting the tabbedpanes..

Re: PHP newbie questions

Posted: Mon Oct 18, 2010 4:23 am
by requinix
tinks wrote:so without php, i can make html forms with javascript, and then later do away with the php part?
You can later add in the PHP, yes.