Solved

Tagsin dreamweaver

Posted on 2006-06-27
8
214 Views
Last Modified: 2010-04-25
HI all

Im writing php code in dreamweaver but i have to write so manytimes

$_POST or $_GET , echo ect ect

is there a way i can add these to a tag list so all i have to do is click something to output the information to my code

is there any libries that have allready been created to i can just add a file and thats it just select and use

thanks in advance
0
Comment
Question by:avo42
  • 4
  • 3
8 Comments
 

Author Comment

by:avo42
ID: 17000768
anyone

cheers
0
 
LVL 4

Accepted Solution

by:
ale_jrb earned 350 total points
ID: 17003098
Sure there is!

1. Find the toolbar on the left side of the screen.
2. Hover over the icons to display tooltips - find the "Snippets" icon (4th from bottom).
3. Click it, then choose "Snippets Panel" from the drop down menu.
4. A panel appears in the right-hand pane. Using the buttons at the botton of the panel, create a folder called "PHP".
5. With that folder selected, choose the "New Snippet" button from the base of the pane.
6. A box will appear. Name the snippet "$_POST" and type a useful description.
7. Choose "Wrap Selected" then in the "Before" box, type (without quotes) "$_POST['" and in the "After" box, type "']".
8. Leave the final option as "Code" and click OK.
9. Repeat for $_GET.
10. Now, whenever you want to insert them, highlight the code you want it around and just click it in the Snippets pane.

Hope this helps!
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17004432
Ale_jrb,

Nice answer...short, sweet, and 100% accurate.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 150 total points
ID: 17004475
Hi avo42,

There are other ways to do what you ask.  Ale_jrb's answer is also correct, and easier, but this function is already built into DW.

From the Insert Panel, select the PHP tab.  The first two icons should be for Form variables ($_POST) and URL variables ($_GET).  Clicking either icon will insert:

<?php $_POST['']; ?> or <?php $_GET['']; ?>

The problem is that the <?php ?> tags also come in even if the code is already in a php declaration.

You could also modify the PHP tag library to insert these codes, but that's more difficult than just making snippets.

0
 

Author Comment

by:avo42
ID: 17004524
Hi thanks

The libary sounds intresting how is this performed or are there any libaries i can download


thanks
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17004616
Go to Edit | Tag Libraries and hit the Help button for an explanation
0
 

Author Comment

by:avo42
ID: 17004672
Thanks

Do you know of an exstension i can use so my snippets can be on my top toolbar

thanks again
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17004706
Not offhand.  Search the Exchange and see what you come up with.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
problems opening dw files with cs6 8 293
Internet explorer web page rendering issues. 5 528
2 containers on one webpage 4 254
Setting up PHP server 3 213
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question