I need help.

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
mac123
Forum Newbie
Posts: 4
Joined: Tue Sep 01, 2009 9:05 am

I need help.

Post by mac123 »

Currently I have this simple email form in php.

However, the alignment of the text field is off.

How can I make all the text field align nicely?

Anyone can help?

This is the reference link:

http://www.robson-design.com/processemail.php

Pls advise.

Appreciate it.
Paul_F
Forum Newbie
Posts: 10
Joined: Sat Aug 29, 2009 6:17 pm

Re: I need help.

Post by Paul_F »

I'd put that form in a table. That's the easiest way to seperate literals from values, IMHO.

Good Luck!
Paul
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: I need help.

Post by papa »

I use labels.

Code: Select all

 
label {
    display: block;
    float: left;
    width: 10em;
}
<p><label for="user_name">Username</label>
<input type="text" name="user_name" value="" id='user_name' />
*</p>
mac123
Forum Newbie
Posts: 4
Joined: Tue Sep 01, 2009 9:05 am

Re: I need help.

Post by mac123 »

papa wrote:I use labels.

Code: Select all

 
label {
    display: block;
    float: left;
    width: 10em;
}
<p><label for="user_name">Username</label>
<input type="text" name="user_name" value="" id='user_name' />
*</p>
Hi Paul,

You are very helpful.

Sorry due to some coding problem, I seems to be blur.

Is it possible I send you the file for adjustment.

Btw, it's nice knowing you... :lol:
Paul_F
Forum Newbie
Posts: 10
Joined: Sat Aug 29, 2009 6:17 pm

Re: I need help.

Post by Paul_F »

Mac,

I'll PM you a sample file that you can play with and learn from. Papa's method would work for you as well. I just prefer using tables!
mac123
Forum Newbie
Posts: 4
Joined: Tue Sep 01, 2009 9:05 am

Re: I need help.

Post by mac123 »

Paul_F wrote:Mac,

I'll PM you a sample file that you can play with and learn from. Papa's method would work for you as well. I just prefer using tables!
Thanks Bro for the reply.

Actually, I tried to open in Dreamweaver and created a table for it but when I tested, it did not work...:)
Paul_F
Forum Newbie
Posts: 10
Joined: Sat Aug 29, 2009 6:17 pm

Re: I need help.

Post by Paul_F »

No problem man!

Here's the page where I snatched that form from. All I did was format it into a logical/legible file. You you may find some other useful stuff there.
mac123
Forum Newbie
Posts: 4
Joined: Tue Sep 01, 2009 9:05 am

Re: I need help.

Post by mac123 »

Paul_F wrote:No problem man!

Here's the page where I snatched that form from. All I did was format it into a logical/legible file. You you may find some other useful stuff there.
Hi bro, what's ur email address? ;)
Post Reply