close ad
Databridge V2 with MySQLi support IS Now Available!
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 2:25 pm by holt3937911 | Last modified 1/31/2011 6:45 am by Jason Byrnes | 1383 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');"/>

Sign in to reply to this post


PHP $_Get parameter is in error

This seems to works

<?php echo((isset($_GET["invalid"])?ValidatedField("Contactemail","MLS_Number"): $_GET[mls])); ?>

Not sure why $mls when substituted for the $_GET[mls] didn't work.

Sign in to reply to this post

Jason ByrnesWebAssist

case sensitivity is the issue.

you had:


there is no $_Get array in PHP, but there is a $_GET array that contains all of the query string variables.

is not the same as:

in PHP

Sign in to reply to this post

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...