Creating custum html forms |
[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
[eluser]xwero[/eluser]
I'm not sure which class/library you are using but you should take a look at the source code of the html and see if a br tag is added or not. If it is the class is responsible for it and you should check if it's possible to change the html creation of the inputs.
[eluser]bidur[/eluser]
Hi , thank you for your reply. I am using CI RAPYD(Rapyd 0.9.8 for Code Igniter 1.5.4). And I dont know much about the class/library but I am looking at the samples and trying to proceed and got stuck over here. The part of the code uses this statement for loading library/class: $this->rapyd->load('dataobject','dataform'); thanks
[eluser]bidur[/eluser]
Although I am late... for getting solution to my above stated problem I went through the pages in http://www.phpeveryday.com/articles/Code...-P247.html It helped me a lot to understand MVC and begin with CI. thank you |
Welcome Guest, Not a member yet? Register Sign In |