Welcome Guest, Not a member yet? Register   Sign In
syntax question
#9

[eluser]Dam1an[/eluser]
Is there a particular reason why you need to concatenate strings to make a form?
You should render the form in a view file, where you can use plain HTML (outside of PHP tags) or echo each part directly from within the PHP tags

Now back to the actual question at hand, there are several ways to do this
The easiest method, and the way I do it (as all my forms are styled the same) is to use CSS, or more specifically the display element. By setting this to 'block', input fields will display under each other, instead of next to each other, even if you don't put anything else in the HTML to do this
Code:
// The CSS
input {
  display: block;
  ... any other rules here
}

The other option is to just put a <b r /> (remove space between b and r) in between the 2 fields


Messages In This Thread
syntax question - by El Forum - 06-17-2009, 04:01 AM
syntax question - by El Forum - 06-17-2009, 04:03 AM
syntax question - by El Forum - 06-17-2009, 04:05 AM
syntax question - by El Forum - 06-17-2009, 04:25 AM
syntax question - by El Forum - 06-17-2009, 04:29 AM
syntax question - by El Forum - 06-17-2009, 04:31 AM
syntax question - by El Forum - 06-17-2009, 04:34 AM
syntax question - by El Forum - 06-17-2009, 04:35 AM
syntax question - by El Forum - 06-17-2009, 04:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB