Welcome Guest, Not a member yet? Register   Sign In
Creating custum html forms
#1

[eluser]bidur[/eluser]
Hi all,
I wanted to design a html form.
Being a beginner I could design some simple forms i.e. only one html element per line.
I want to design a form something like this(I want to have multiple Html element in a single line):
-----------------------------------------------------------------------

Title|______| Name:|___________| Surname:|__________|

-----------------------------------------------------------------------

I am using the following code:
.
.

$form->title = new inputField("Title", "title");
$form->title->rule = "trim|required|max_length[20]";
$form->title = new inputField("Name", "name");
$form->title->rule = "trim|required|max_length[20]";
$form->title = new inputField("Surname", "surname");
$form->title->rule = "trim|required|max_length[20]";

$form->submit("btnsubmit","SUBMIT");
$form->build_form();
.
.
---------------------------------------------------------------------------------
But this produces something like this.
---------------------------------------------------------------------------------

Title |______|

Name: |__________|

Surname: |__________|

----------------------------------------------------------------------------------
I am waiting for help.

(Again,I would be happy if you suggest some good book to learn CI)

Thanks


Messages In This Thread
Creating custum html forms - by El Forum - 03-19-2008, 05:31 AM
Creating custum html forms - by El Forum - 03-19-2008, 05:46 AM
Creating custum html forms - by El Forum - 03-19-2008, 11:26 PM
Creating custum html forms - by El Forum - 05-14-2008, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB