Page 1 of 1

Field in a form have its value dependent to the current page address(url)?

Posted: Fri Jan 25, 2008 8:42 am
by malcolmkurikong
Errr.... guys, I do not have any knowledge about javascripts, css and other more complicated stuff except from writing a basic html.
Well, I have used the Form Builder module and it works just fine.
The problem now is that I want my form's fill up boxes to have its value dependent to the current page.

For example:
_CONTACT___________
|                _________    |
|  Name:  |_________|  |
|  Subject:|_______|      |
|            ______              |
|          |SUBMIT|            |
|___________________|
and the page url is like this: /index.php?page=scottsdale
What I want to happen is the subject box to have a default value of scottsdale so the form would turn out like this:
_CONTACT___________
|                _________    |
|  Name:  |_________|  |
|  Subject:|scottsdale|    |
|            ______              |
|          |SUBMIT|            |
|___________________|
So, i want it totally dependent on the sites page name because I don't want to put those values one by one.
The form I'm making is for a realty listing site.
note: They cannot afford to hire a skilled web designer so my father commissioned me to build up a site for them. And I'm taking Education as my course for college thats why my skills are limited in this area.

....Sorry for the crappy presentation and examples...

Re: Field in a form have its value dependent to the current page address(url)?

Posted: Fri Jan 25, 2008 10:56 am
by lollipop27
in the {form} tag. you can add something like this... value_YOURFIELS=$title