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

General project discussion. NOT for help questions.
Post Reply
malcolmkurikong

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

Post 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...
Last edited by malcolmkurikong on Fri Jan 25, 2008 8:45 am, edited 1 time in total.
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

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

Post by lollipop27 »

in the {form} tag. you can add something like this... value_YOURFIELS=$title
Post Reply

Return to “General Discussion”