PDA

View Full Version : how to add drop down list in vb?


msalman
06-25-2007, 03:36 AM
hey guys,

i apologize in advance if this question have been asked before. I'm trying to create a new page in my vb forum and add few options etc. I've gone through the tutorial on how to create a new page within vb forum and i've been successful so far. I just wondering how can i add textfields, drop down lists (combo box) and buttons etc. I know how to create a form in html and link it to javascript. But i was wondering if there's already built in code then how can i link my code to it? For example, i've seen that in forumjump template, it uses the form and then in one of the optiongroup it calls $forumjumpbits and in other templates i also noticed calls to $somethingbits. Another example is $quickchooserbits or $postbits etc. I was wondering what are these, different classes and how i can create one like this?

thanking in advance

Dismounted
06-25-2007, 06:39 AM
You can put any HTML you want in your templates....Such as the form fields you want.

Kungfu
06-25-2007, 06:44 AM
basically what it does is this. You have your php script and you would assign a variable as a template.

So you can do something like

$header = header_template
$content = Content_template

then at the end you could out your entire page.

print(entire_page_template)

in your entire page template you can pass those variables down, so your entire page template may just be

$header
$content
$footer

etc....

So when you see those variables in the templates they are being passed from the server in a php script.

Thats just a simple way of putting it.

msalman
06-25-2007, 11:43 AM
^thanks for this info, never mind the other questions i asked earlier. I've figured out myself, thanks though