Solved

Tagsin dreamweaver

Posted on 2006-06-27
8
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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
Printing source code 2 316
Wrapping 2 Divs in a Container 8 576
Edit Muse Website with Dreamweaver 6 1,638
Add server behaviors to Dreamweaver CC 2015 2 255
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…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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