It has nothing to do with Preferences. You need to use a PHP page. You should also define a site and local testing server, setting the server model to PHP/MySQL. See http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html,
Thanks for replying David.
Sorry if I did not make myself clear. I am working through Dreamweaver CS5 with PHP and MySQL - a tutorial available from Lynda.com. I have downloaded a set of exercise files (a group of folders which you use depending on what lesson you are up to). So I have defined a site and set up a local testing server (WampServer 2.0) as per my instructions in the previous videos. So that works and everything has been going fine until I get to Chapter 6: Building Data Entry Forms - Video 2 : Handling form submissions with PHP.
When I watch this video I define the site as 06_forms as the root folder then open a pre-built PHP file called simpleform2.php. This PHP file has a form with some controls (textfields like firstname, lastname). My job is to open the Bindings panel, click on the plus button and choose Form Variable as instructed by the author, David Gassner. This opens a dialog box where I enter firstname (the name of the first text field) and click OK just like in the video.
Now when David does it, the variable appears in the Bindings panel as Form -->> firstname.
When I do it, nothing appears!
Hope you can help.
Thanks for the response, Jay. It was helpful to know that I was not the only one experiencing problems. Likewise, the only advice that I got from Lynda.com was to make sure the exercise file was not write-protected - no help! It turns out not to matter though, because the bindings panel works fine for my own site. Whatever the problem is, it seems to be specific to that project.
I know this is my first post here and it may already have been answered elsewhere.
This particular problem occurs when the document type you are working on is not PHP. You can see this at the Bindings tab where it reads: Document type:HTML - To change this, so that Dreamweaver CS5.5 will understand that it is a PHP document and not just a normal HTML you need to do the following;
To the very first line of your code, then save it and you can use the correct bindings again.
Once you have done this, the Document type:HTML should have swapped to PHP and you can then access the Form Variables among other features. If it is still missing, close and reopen that document again and this time it should ask you for the related files - which it will not do in a basic HTML document (save for the CSS and SSI files you may have added, but in that case you will know that's the case)
I have the same problem.
1. I completely re-installed DW CS5.
That didn't work.
2. I deleted the configuration files .dat and then the whole folder.
That didn't work.
3. I tried what SEO Shepard suggest and it didn't work.
Here's a Recap of The problem;
I Have Windows 7 64 bit Professionnal, on a Lenovo Y730, Dreamweaver CS5
- I am trying to set some 'form variables' using the 'Bindings' panel, pressing on the '+' sign and choosing 'Form Variable' then entering my value 'firstname'.
- Document has extension .php
- A Connection is established
- Nothing gets changed or set in the 'Bindings' panel.
Have a look at the Bindings Panel, for the + sign to show you the options, you need to see this;
+ - Document type: PHP
I believe that you have this
+ - Document type: HTML
Document file extension has nothing to do with how Dreamweaver seem to interpret the actual document.
Make sure you do the following;
- Add <?php ?> anywhere in your code view
- Save the document
- Make sure that the document is saved as "randomfilename.php"
- Refresh the Desgin View (click 2x on Live View)
- Look at the Bindings tab, it should read exactly as Example 1 above
- If not, close the document and reopen it again
- Now it should read as Example 1 above, if not you have not closed the document properly!
I have tested and verified the above multiple times since yesterday. This works with Dreamweaver CS 5.5 Build 5315.
Hello SEO Shepherd,
I can confirm that I do see this,
+ - Document type: PHP
For me that has always showed up as Document Type PHP.
I go as far as having a pop up form which asks the name I want to give to my variable and then when I press ok. the pop up box goes away but nothing is added in the bindings panel.
I have attempted to duplicate your problem, but the only time I am unable to add anything (not even click on the +) is when the Live View is active. I do however receive a warning that informs me that I need to switch Live View off in order to continue editing the page. Only alternative I can think of is that you might try and add the Form Variable while having the CSS (or other related document) file open.
I also added an empty php code block at the very top of the page and still don't see the form vairbales in the binding panel. The simpleform2 is a php page.
Also in the binding panel I have a check mark on and it says the document type:php
1. create a site for this file
2. choose a document type
3. set up the site testing server
4. press the + button and choose the record set
Any help would be appreciated.
Just follow the tips explained above, should you still have problems, re-install Dreamweaver and try again. Still not working? Set up a completely new site while you still have this document open, make sure you create it as a PHP and that the file is saved as .php + the presence of PHP code within the code. Still not working? Ask Adobe to fix you up with a patch.
Sorry, but that is all I got, I have tried your example over and over again and everytime they are solved by making sure that the files are created with proper file extensions, site is setup and the presence of PHP code within the document. It works 100% of the times for me and I can even reverse it so that it fails if I remove the PHP code, then the Bindings fail to give me the Form Variable options again.
I decided to write to Lynda.com. This is their response.
Since reviewing their response I created a new site with a fresh copy of the exercices files. Basically nothing is changed for me. I still get the same problem. 'Form Variables' are not working on my installation. Is there a way to reinstall only the form variables extension to dreamweaver?
The author responded to your question. He states that the answer is in the FAQ section of the course. I have posted the FAQ below.
Please let me know if I can be of further assistance.
Q: The Bindings panel is disabled, and I can't create new queries or form variables in the current PHP file. How can I correct this problem?A: This indicates that the file you have open isn't a part of your current site. For example, you might have opened a file from one site, then switched sites and tried to continue working on the same file. Try closing all files, then opening the file you want to work on from the Files panel. This ensures that the current file and site are in sync.
I read that FAQ from lynda yesterday. What the author is talking here refers to syncronization problem. Not the binding panel.
Yes if you define a file in one site and trying running the same file in another site then there will be a syn problem and dreamweavre is good to letting u know tht immediately.
1. I created a new site and pointed my local site folder to chapter 6 exercise (06 forms)
2. I gave my local testing folder details.
3. And opened simpleform2.php file and tried adding teh form variables ---> didn't work
Double Checking from Toda :-
I created a new site and created a new form and embedded this new table inside the form. Now after that I tried to add the form variables in the binding panel and it worked. So I guess for some reason the tutorial in chapter 6 simpleform2.php is not allowing to add the form variables but the regular .php files are able to..
So i think the problem pertains only to this tutorial.
I went back and created a new site and I was able to get the 'Form Variables' working.
Thank you to all who contributed to this question.
It seems like Dreamweaver is very fickle about this set up for some reason and now, at least, I know the problem is a configuration issue and in this case this is not a software issue.
I have been working through this tutorial as well, and have run into the same issue. Tried all the suggested fixes, no luck. Wrote to lynda.com and received the same response, initially, that the author addresses the problem in the FAQ and quoted the same answer. I responded to the technician that this did not fix the issue, and that there were people on this forum who all have the same problem. the technician responded immediately and said he would pass the information on to the author and ask him to address it.
I'm going to move on through the rest of the tutorial, but figured I would still let them know that there is an issue. I can keep moving in the series without this one piece working for me, but I did spend a lot of time trying to figure out what I had done wrong so that I could learn from it--and it turned out not to be me (this time)...so I figured it might be helpful for the next "student' if they can fix the issue. I hope they do. I still consider lynda.com to be an invaluable resource.
Thanks everyone for posting on this issue, it at least let me know I needed to move on.
I am working on this tutorial as well with the same problem. I am going to try to redefine the site. It's frustrating because this is the one piece on my own website that I am trying to figure out how to do;create a contact form without opening outlook. I am new to all of this, and have spent countless hours on trying to figure out how to create this. Hours on Lynda.com, which I love, but must admit this is quite frustrating. Just when I thought I would figure it out, this piece on the tutorial is not functioning properly! Technology is great when it works, and drives me crazy when it malfunctions!
Copy and paste the sourc code here! Binding can only be achieved when a form structure is initiated! This form must also be one from PHP document type. Your bindings will not appear when your extension page is also not of PHP. Effectively binding is binding screen input variables to database - table fields.
My assumption you have already declared and created your database and table structure! You have a PHP extension document type. You have a form structured on your page. If it is not just insert> form from the drop down or toolbar form icon.
I will wait for your reply.
The Getvma user has the correct Answer!!! Go to where your files are stored, C: drive or usb flash, go to the forms 06 folder, look for the notes folder and delete the .mno. Then it wil work fine, this file is like a lock for the files or conflicts with the files. Anyway, this will work and send you onto your next lesson! cheers!
Problem still there. Using CS6 12.0 Build 5861
I tried following getvma and shazam14cpu's advice but I can't find a no name (.mno) file in that the /_notes folder. Maybe it was taken out within an update, but it's not that there and I'm still having to deal with the problem.
There are 6 files in the folder that are LABELED with (.php) at the end, but are actually of type (.mno)