Page 1 of 1

Planning to develop php app

Posted: Sat Jul 16, 2011 2:56 am
by Vansers
Hey Guys,

First time here. lol.

I have a question and I'm basic user to php and I edited so much php files and so far here.

Now I wanted to develop a php application.

I'll give you a run down of what my application will be. Basic for right now.

1) It will be a members application

2) Register Form

3) Login Form

4) Profile Area

Now I'm little lost of how I will get get the application developed.

I'll have those files in the main directory of the site. Examples of it... index.php, register.php, login.php, profile.php,

Inside of those files, will this work this way?

for register.php

Code: Select all

<?php

public function submitinfo

//do the work!!!

?>

<html>
<body>

<form action="register.php" method="post">
<p>First Name:
  <input name="firstname" type="text">
</p>

<p>Last Name:
  <input name="lastname" type="text">
</p>

<p>Email:
  <input name="email" type="text">
</p>

<p>Password:
  <input name="password" type="password">
</p>

<p>Comfirm Password:
  <input name="password2" type="password">
</p>

<input name="submitinfo" type="submit">

</form>

</body>
</html>


Now I know we need to put the database info, but I hear that we should create our own database connection info php file and add the include function for the database so it can do the work.

Sorry for the bad English, not strong in it.

Can anyone give me a shoot and tell me where I could start and I would be happy!

Thanks!

Sorry if I posted in the wrong area.

Re: Planning to develop php app

Posted: Sat Jul 16, 2011 3:20 am
by social_experiment
Welcome to the forum. The easiest way to find more information on the topic is to have a look around in the forum. Chances are good that someone has already asked a similar question and received advice on how to proceed :)

Yes the example you gave will work, you can remove the value from the action attribute (action="register.php") as you are calling the page on itself.

Once you have created some code paste it for feedback and assistance (if needed).

Re: Planning to develop php app

Posted: Sat Jul 16, 2011 5:16 am
by Vansers
Thanks for the feedback!

I will certainly do that and give it a try!

Re: Planning to develop php app

Posted: Mon Aug 01, 2011 11:47 am
by adbertram
Before you start looking into specifics like that be sure to do you initial brainstorming of all the entities you're going to need, UI design, workflow and finally coding. Here's a great video from 37signals that I just watched recently. http://37signals.com/svn/posts/2608-rya ... 010-london

Re: Planning to develop php app

Posted: Fri Aug 05, 2011 8:48 pm
by Christopher
Vansers wrote:I'll give you a run down of what my application will be. Basic for right now.

1) It will be a members application
That is actually a great starting place! This is where we clarify the Domain of the application. So we know there are Members and that they can "apply" which means they can create a new Member account.
Vansers wrote:2) Register Form
This is a page (or pages) to create a new Member account.
Vansers wrote:3) Login Form
This is a page to enter Credentials and the program checks to see if they match the Credentials of an existing Member account. If they do we put some information in the Session or a Cookie that we can check every request.
Vansers wrote:4) Profile Area
This is a page (or pages) to edit an existing Member account. They need to be logged-in to access this page.
Vansers wrote:Now I'm little lost of how I will get get the application developed.
So a good start. What are the minimum data is to define a Member? What are the data fields?
Vansers wrote:Sorry for the bad English, not strong in it.
Your English is excellent ... no need to apologize.