PHP newbie questions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tinks
Forum Newbie
Posts: 5
Joined: Mon Oct 18, 2010 2:32 am

PHP newbie questions

Post 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?
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: PHP newbie questions

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP newbie questions

Post 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.
tinks
Forum Newbie
Posts: 5
Joined: Mon Oct 18, 2010 2:32 am

Re: PHP newbie questions

Post 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..
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP newbie questions

Post 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.
Post Reply