close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Setting Default Values for Forms from parms passed in URL

Thread began 1/29/2011 5:25 pm by holt3937911 | Last modified 1/31/2011 9:45 am by holt3937911 | 1238 views | 2 replies


Setting Default Values for Forms from parms passed in URL

I'm trying set a field of a form built with FB using a parameter passed on the URL that invokes the page containing the form.


As you can see I have two fields mls and rid. I've edited the code that is created by FB to set the default value of two fields MLS_Number and Realtor_ID. I was thinking that I could simply reference the parameters $mls and $rid or use $_Get["mls"] or $_Get["rid"]

The code below....doesn't provide any value for the MLS_Number field....but if I just use "111" directly for the value of Realtor_ID" the string does show up in the proper field in the form....but its not the value passed on the URL.

Any suggestions....I suspect this is a simple problem...but I'm a newbie.


<input id="MLS_Number" name="MLS_Number" type="text" value="<?php echo((isset($_GET["mls"])?ValidatedField("Contactemail","MLS_Number"): $_Get["mls"])); ?>" class="formTextfield_XSmall" tabindex="6" onblur="hideServerError('MLS_Number_ServerError');"/>
<span class="textfieldRequiredMsg">Please enter your email address.</span> </span> </div>
<div class="lineGroup">
<div class="fullColumnGroup">
<label for="Realtor_ID" class="sublabel" > Realtor ID</label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Realtor_ID_Spry">
<input id="Realtor_ID" name="Realtor_ID" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("Contactemail","Realtor_ID"):"111")); ?>" class="formTextfield_XSmall" tabindex="7" onblur="hideServerError('Realtor_ID_ServerError');"/>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...