Problem with PHP, CSS & Code Navigator in CS4

Hi,
I've got al little problem with code navigator. To show the problem, I created this 3 files:
test1.html
The CSS-Definition is defined static, with simple HTML.
<html>
<head>
     <style type="text/css">
          @import "test.css";
     </style>
</head>
<body>
      <p>Hello World</p>
</body>
</html>
test2.php
The CSS-Definition is defined dynamic, with PHP-Code.
<html>
<head>
     <style type="text/css">
          <? echo "@import \"test.css\";\n"; ?>
     </style>
</head>
<body>
      <p>Hello World</p>
</body>
</html>   
test.css
The CSS-File which is imported in test1.html and test2.php
p {
     font-size:20px;
The Problem in Dreamweaver CS4
When opening the test.html - File in Dreamweaver CS4, I can easily see the CSS-Definition of the <p>-Tag in Code Navigator. To edit these definition I can simple open the test.css by clicking on the definition in Code navigator. For a complex webpage this is a greate feature. Sadly, this does not work, when I open the test2.php. Although when going to Live View and selecting the <p>-Tag I can see the CSS-Definition and the file in which it is defined in Code Navigator. But by clicking on the definition the test.css DOES NOT OPEN!
Has anybody a solution? Because many of our projects have dynamic CSS-Definitions, it would be a shame, if this would not work.
Tanks for help! :-)

I've done some testing, which might point you in the direction of an interim solution.
This is the code for related_files.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Related files test</title>
<?php include('include.css'); ?>
</head>
<body>
<p>This is a paragraph.</p>
</body>
</html>
This is the code for include.css:
<style type="text/css">
p {
     font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
     color:#F00;
</style>
Note that the include file contains the opening and closing style tags.
By including your styles like this in a PHP include file, Dreamweaver applies the CSS in Design view (you don't need to turn on Live View). Holding down the Alt key while clicking in Design view brings up the Code Navigator with all the details of the CSS. The one missing link in the chain is that clicking the style selector in the Code Navigator does not open the CSS file. However...
The file that contains the CSS is listed in the Related Files toolbar, so you can edit it in Split view, and see the results in Design view in exactly the same way as with an HTML page and ordinary style sheet.
As I say, not the full solution that you wanted, but it might be something worth experimenting with.

Similar Messages

  • Hello, i have a problem with this number code  213:19,  please help me!

    Hello, i have a problem with this number code  213:19,  please help me!

    dan
    What version of Premiere Elements and on what computer operating system is it running?
    If you are using Premiere Elements 13, have you updated it to 13.1 yet? If not, please do so using an opened project's Help Menu/Updates.
    What type of user account are you using....local administrator or domain type?
    Please review the following Adobe document on the 213.19 issue. Have you read that already?
    Error 213:19 | Problem has occurred with the licensing of this product
    ATR

  • Problem with my exe code

    Hello,
    I have a small problem regarding to my code. I have attached the source code. There isn't any problem with the vi code. But when I convert the vi to exe, and double click the exe file in order to open it , the program is trying to start, I mean it is acting like I clicked the run button. I said it is not a problem, because all the values (test duration, delay duration, high limit, low limit) are zero. Therefore it is attempting to run, but only very small portion of the pressure reading occurs. What do you think about the cause of this problem? Thanks for your help.
    Ahmet
    Attachments:
    front panel1.jpg ‏47 KB
    Oksijen_Atolyesi.vi ‏45 KB

    Hi Ahmet,
    when duration and delay are zero, the your DAQ loop will (probably) run only once, thus giving you only small amount of data...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Oksijen_Atolyesi.vi ‏35 KB

  • Problems with embedding .flv files in DW CS4....

    I inserted an .flv file into my DW CS4 html page. I previewed it in my browser, and it worked for a little bit, but now it's not working in any browser, I'm not sure what happened. I included a screen shot in the attachments of what was happening in all the browsers.
    Thanks for any help,
    Thank you,
    Aza

    Not sure if that was meant for me
    You can tell who was the intended recipient by looking at the header of the message -
    6. Sep 10, 2010 6:50 AM in response to: FordGuy48 <<----
    Re: Problems with embedding .flv files in DW CS4....
    A link to the page would help us diagnose your problem.
    Safari tells me that this file -
    FLVPlayer_Progressive.swf
    is not where you have told the page to expect it.  Did you upload it?

  • Problem with php code. Please help!

    Hello!
    I'm using the following syntax to bring content into my
    websites' layout template:
    Code:
    <?php //check in the root folder first
    if(file_exists('./' . $pagename . '.php'))
    include './' . $pagename . '.php';
    //if it wasn't found in the root folder then check in the
    news folder
    elseif(file_exisits('./news/' . $filename . '.php'))
    include './news/' . $pagename . '.php';
    // if it couldn't be found display message
    else
    echo $pagename . '.php could not be found in either the root
    folder or the news folder!';
    } ?>
    What it's essentially saying is, if you can't find the .php
    file in the _root folder, look for it in the /news/ folder.
    It works perfectly if loading something from the _root folder
    but I get an error if I need to bring something from the /news/
    folder.
    Can anyone see any potential problems with my code?
    Thank you very much and I hope to hear from you.
    Take care,
    Mark

    I've never seen the code written like that before, but I'm
    assuming it's
    legal?
    Perhaps try:
    <?php
    $newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
    if (!file_exists("$pagename.php")) {
    elseif (!file_exists("$newsroot/$pagename.php")) {
    else
    Or the other thing you can try is replacing the elseif
    statement with:
    elseif (!file_exists("news/$pagename.php"))
    If not - I'm sure Gary will be on here soon...
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Spindrift" <[email protected]> wrote in
    message
    news:e5mled$272$[email protected]..
    > Hello!
    >
    > I'm using the following syntax to bring content into my
    websites' layout
    > template:
    >
    > Code:
    >
    > <?php //check in the root folder first
    > if(file_exists('./' . $pagename . '.php'))
    > {
    > include './' . $pagename . '.php';
    > }
    > //if it wasn't found in the root folder then check in
    the news folder
    > elseif(file_exisits('./news/' . $filename . '.php'))
    > {
    > include './news/' . $pagename . '.php';
    > }
    > // if it couldn't be found display message
    > else
    > {
    > echo $pagename . '.php could not be found in either the
    root folder or
    > the
    > news folder!';
    > } ?>
    >
    > What it's essentially saying is, if you can't find the
    .php file in the
    > _root
    > folder, look for it in the /news/ folder.
    >
    > It works perfectly if loading something from the _root
    folder but I get an
    > error if I need to bring something from the /news/
    folder.
    >
    > Can anyone see any potential problems with my code?
    >
    > Thank you very much and I hope to hear from you.
    >
    > Take care,
    >
    > Mark
    >

  • A difficult problem with php code and sql code

    it's good place to visit(Paged Result Sets with PHP and Oracle)
    http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_paged.html
    maybe below part php code could not be used in above address's php code.
    if((isset($l_company) and $l_company != $rows['COMPANY']) or empty($stmt) and empty($total_pages) ) {
    echo "<tr bgcolor='#CCFFCC'>";
    echo "<td colspan= 3 align='center'>".$l_company."</td>";
    echo "<td >".$totalcomany." </td>";
    $totalcomany = 0;
    echo "<td > </td>";
    echo "</tr>";
    $l_company = $rows['COMPANY'];
    because the same company in one page could calculate sum while if
    the same company in two pages could not do that.
    and what do you think of ?
    thanks !

    Hi,
    this is because your sql-statement selects only the rows, you need to build this one page.
    Neither php nor the given result from your query knows about data wich will be part of the result of another page.
    Greetings from Hamburg
    Thorsten Körner

  • Problem with inserting html code.

    Hello,
    I have a problem with the inclusion of this code html connected to the CSS style sheets:
    <head>
    <link href='http://fonts.googleapis.com/css?family=Raleway:320,320,300' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="assets/normalize.css" />
    <link rel="stylesheet" type="text/css" href="assets/demo.css" />
    <link rel="stylesheet" type="text/css" href="assets/component.css" />
      </header>
        <div class="grid">
        <figure class="effect-lily">
        <img src="assets/1.jpg" alt="img01" class="effect-honey"/></figure>
      </a>
    </section>
    </div><!-- /container -->
    </body>
    </html>
    1) Does not appear in the preview thumbnail adobe muse.
    2) The pull-down menu or previously entered disappears from display problems once exported the site in html.
    Removing the html code menu work correctly.
    Where is the problem ??

    Most likely there is a critical code error somewhere. Use the W3C validation tools to check your CSS and HTML code.
    CODE VALIDATION TOOLS
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • Problems with php script in the contact form

    Hello, I am from the Czech Republic and I am not a coder. I have 2 problems with my php sript. I am using a simple php script from Paul Trani, see below.
    Firstly the email adress - when someone inserts an email adress in this form [email protected] it is OK, but when someone writes an address for example [email protected] (this type of adress is very common in our country) the answer is "That is not a valid email address.  Please return to the previous page and try again." I think the problem is the dot before the @.
    Secondly diacritical marks - Since I am from the Czech Republic we use diacritical marks (for example š,č,ř,ž,á,í,é,ě) so instead of this letters a get ? or Å&#153; or Å¡ to my email.
    I really do not know how to fix these problems.
    Thank you for any help. Sorry for my English. Peter
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
    <title>Email Form</title>
    </head>
    <body>
    <?php
      $name=addslashes($_POST['name']);
      $email=addslashes($_POST['email']);
      $comments=addslashes($_POST['message']);
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From EcoStyleStudio.com";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body = "Name: ".$name."<br>\n"
                ."Email: ".$email."<br>\n"
                ."Comments:<br>\n"
                .$comments;
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thanks for submitting your comments";
    ?>
    </body>
    </html>

    ereg() has been deprecated, it is recommended that you dont use it.
    You want to look at this
    http://www.php.net/manual/en/function.preg-match.php
    Within this page I found this:
    If you need to check for .com.br and .com.au and .uk and all the other crazy domain endings i found the following expression works well if you want to validate an email address. Its quite generous in what it will allow
    <?php
            $email_address = "phil.taylor@a_domain.tv";
         if (preg_match("/^[^@]*@[^@]*\.[^@]*$/", $email_address)) {
             return "E-mail address";        
    ?>

  • Insert problems with Php Data Services

    Hi All,
    I am using Flex Data wizards to create a simple CRUD application and i am having problems adding data. It works the first time i start my application but subsequent calls to the insert fail.
    I am using FB2 Beta with MAMP. The php classes are being generated using the data wizard. i have tried commenting out mysqli_close but still it doesn't work.
    public function createDive_events($item) {
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename ( divedate, divesite, divecost, description, totalDays) VALUES ( ?, ?, ?, ?, ?)");
    $this->throwExceptionOnError();
    mysqli_bind_param($stmt, 'ssdsi', $item->divedate, $item->divesite, $item->divecost, $item->description, $item->totalDays);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $autoid = mysqli_stmt_insert_id($stmt);
    mysqli_stmt_free_result($stmt);
    //mysqli_close($this->connection);
    return $autoid;
    Any ideas, what i am doing wrong. I have tried using the update and it works only once as well, it seems that the connection to the function is lost after the first call.
    thank you,
    Nayan

    Ok, this is what I got.
    create a mysql table (`people`) with columns id (auto increment), first_name, last_name, age
    in the data/service panel connect to a php service, generate a php service from the database and the people table
    generate a form from the createPeople service call
    observe that in source view we have something like this: <fx:Script>
      <![CDATA[
           protected function button_clickHandler(event:MouseEvent):void {
              createPeopleResult.token = peopleService.createPeople(people);
      ]]>
    </fx:Script>
    <fx:Declarations>
      <valueObjects:People id="people"
                           people_id="{parseInt(people_idTextInput.text)}"
                           age="{parseInt(ageTextInput.text)}"/>
      <peopleservice:PeopleService id="peopleService"/>
      <s:CallResponder id="createPeopleResult"/>
    </fx:Declarations>
    If you now try to execute the code, you will find that you can only insert one person, where each successive addition silently fails.
    There is nothing really wrong with the php code (well actually since it's auto incrementing on id you should pull all id reference out of the insert statements...) rather there is a problem with the flex people object.
    If you make the following changes the code will work
    protected function button_clickHandler(event:MouseEvent):void {
      var myPerson:People = new People();
      myPerson.first_name = people.first_name;
      myPerson.last_name = people.last_name;
      myPerson.age = people.age;
      createPeopleResult.token = peopleService.createPeople(myPerson);
    - e

  • Office Home and Student 2010 Install problems with a Key Code Err..

    I had to install a new hard drive, lost everything..So I upgraded to Windows 7 Professional ..
    I own a the 2010 Home and Student CD bought at the Microsoft store...Doesn't come with Outlook...
    So I ordered the Home and Business 2010 disc with Service Pack 1 Included, this has 2010 outlook ...It loaded and worked fine up to the point I had to replace my Drive with New Windows 7 Pro...
    Everything loaded find, but every time I try and use it, its acts like it is caught in some kind of loop...It keep trying install and configure, then ask for my Key Code every time, sort of like a OLMAP132.Dll err...I did manage to make it work once, I even
    got back the test email from Microsoft after setting up Outlook....Then when I rebooted the system, this same loop action started ...
    I have uninstalled this at least 4 times, searched for anything with ties to Microsoft office, and uninstalled it..Then did a New Clean Install...Still getting this key Code question every time I open up a Office program....So, I am saying without a doubt,
    2010 Office Home and Student and Business WILL NOT RUN on Windows 7 professional ......If you have any idea how to fix this..Please respond with facts on how to repair this please....

    Greta,,,After down loading ( Off Cat ) tools...I saved that program...However, there is another major problem with Your Instructions I ran into...It seems I'm not the trusted source to change files such as the Mapi32.dll files..So I was unable to attempt
    your repair ...However I have found instructions for the task, but it seems very complicated for sure.. Here are the instructions, and I  would like for you and maybe a co-worker to check these.. before I make any changes in system..
    How to Change the Trusted Installer name...
    1. Right Click on the File Or directory.
    2.Click On properties, on the Right Click menu.
    3.Click On "" Security "" tab
    4.Click On " Advanced" Button on the bottom.
    5.In the advance Security Dialog Window, Click on "" Owner "" tab
    6.Here you will able to see the Current Owner ( ie: Trusted Installed )
    7. To take owner ship of the object, click on the Edit button, Give permission to UAC , the highlight the user name in the " Change Owner To" box that you want to assign as the owner for the object. Then Click " OK " to finish the process.
    8.Back in the Advanced Security Settings Window , You will see the current owner has changed to the user you just selected.
    9.Click the ""OK "" and exit this window.
    10. Click "'OK"" again, to exit completely from the Properties window..
    11. Repeat Step 1 to 4 to open the object's Properties Window again...
    12.Back in Object's Properties window, click on the edit button , and confirm the UAC elevation request.
    13. Highlight the Administrators in the " group of users names"" box. If the user ID or group that you want to manage the permissions for the object doesn't exist, Click on.."" Add"" button, and type in the user name or
    group name desired into the "" Enter Object names to select ( can use Everyone as user Name)" box and finish off by clicking on the "" OK""
    14. In the permissions for Administrators box below ( or any other user name or group name you choose). click on ""Full Control"" under the ""Allow"" column to assign full access rights control permission to Administrator's
    group....
    http//windows.microsoft.com/en-us/windows-vista/troubleshoot-access-denied-when opening-files-or-folders.

  • Region.addObserver Problem with PHP Files

    Hi,
    I try to load a Dynamic XML via PHP Files.
    everything works fine. but when i use a Region.addObserver
    the callback function dont trigger.
    It only happen with php Files.
    My code is
    quote:
    <script language="JavaScript" type="text/javascript"
    src="{{server}}/includes/xpath.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="{{server}}/includes/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript">
    var lastSharing = new
    Spry.Data.XMLDataSet("{{server}}/lastSharing.xml", "lastSharing");
    var categories = new
    Spry.Data.XMLDataSet("{{server}}/getCategories.php?user={{user}}",
    "categories/category");
    var tags = new
    Spry.Data.XMLDataSet("{{server}}/getTags.php?user={{user}}",
    "tags/tag");
    var posts = new
    Spry.Data.XMLDataSet("{{server}}/getLastUserPosts.php?user={{user}}",
    "data/fav");
    function onComplete(notificationType, notifier, data)
    if (notificationType == "onPostUpdate")
    div = document.getElementById(data['regionID'])
    div.style.visibility = "visible";
    Spry.Data.Region.addObserver("usertags", onComplete);
    Spry.Data.Region.addObserver("links", onComplete);
    Spry.Data.Region.addObserver("links2", onComplete);
    Spry.Data.Region.addObserver("posts", onComplete);
    </script>
    {{server}} and {{user}) obvious are fake. here the callback
    function is trigger when the file
    var lastSharing = new
    Spry.Data.XMLDataSet("{{server}}/lastSharing.xml", "lastSharing");
    is loaded but nothing happens with the other, the 4 DIVS
    exist.
    in the php file i use something like that:
    quote:
    private function doXml($data)
    header('Content-Type: text/xml');
    echo "<categories>\n";
    foreach($data as $catego)
    echo
    "<category><![CDATA[".$catego['nombre']."]]></category>\n";
    echo "</categories>\n";
    Any idea??
    thanks.

    That is really strange that it works when things are flat XML
    files and not in the case where it's PHP, the code paths are the
    same, and the Spry code is unaware of the source of the XML.
    Perhaps you can enable region debugging and see what's going
    on. Add this above all your data sets:
    Spry.Data.Region.debug = true;
    Do you see any messages like:
    "Generated region markup for usertags ..."
    "Generated region markup for links ..."
    If not, then something is choking Spry before the
    notification is fired.
    --== Kin ==--

  • Problems with the postal code in address iview ESS.

    I would greatly appreciate if someone answer this threat. I am having this big problem with the address iview. It is not possible to change the postal code in the address iview.

    Can you explain the issue? Means for which country this issue is coming. We faced similar issue. There is some bug in ESS/MSS package itself. You send me details of issue at [email protected] I will reply you back with OSS message answered by SAP if that is a bug.

  • Problem with running sample code from XML Schema Processor for Java

    Hi there,
    I downloaded the XML Schema Processor for Java and tried it out. Unfortunately, it failed at the first step. FYI, I included all xmlparserv2.jar and xmlschema.jar in my classpath.
    I compiled XSDSample.java with a warning: XSDSample.java uses a deprecated API. Recompile with "-deprecation" for details. There was no problem with compiling XSDSetSchema.java.
    When I tried to run report.xml by typing java XSDSample report.xml, I got Parsing report.xml
    NonParserException: null.
    I guess that report.xml from the sample is not valid.
    Could any one give me a hint? Any suggestion would be greatly appreciated.
    ---Denali
    null

    Please post this message at:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB

  • Reading TDMS files in Matlab - problems with the example code

    I want to use the TDMS files to store data and do offline analysis in Matlab, version 2009b (either on Mac OS10.6 or Windows XP).
    To test the data import in Matlab I tried the example from http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2 , but without success.
    I tried either with and without the path definition (as explained on the page I referred to before) at the start, and got back the following errors:
    with:
    ??? Error using ==> loadlibrary>deltempfiles at 559
    nilibddc_m.i.
    Error in ==> loadlibrary at 452
        deltempfiles(delfiles);
    Error in ==> Read_TDMData at 7loadlibrary([examplePath '\nilibddc'], hfile);
    without: 
    ??? Error using ==> loadlibrary>deltempfiles at 559
    nilibddc_m.i.
    Error in ==> loadlibrary at 452
        deltempfiles(delfiles);
    Error in ==> Read_TDMData at 36loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path); 
    I found a few messages on the issue, dating from 2006 and 2007, that didn't lead to a satisfying solution and was hoping that, by now, there would be a solution to my problem.
    Thanks a lot
    Remco   
    Solved!
    Go to Solution.

    Hi Musk,
    Thanks for your answer. 
    Unfortunately it didn't help as my problem is not discussed there. I have a problem with this line:
    loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);
    I said before that I was using 2009b, but I was mistaken, I have R2008a, but the 'loadlibrary' is opened in a 2008b editor (no idea why). On the Mac I have 2009b installed.
    Thanks
    Remco 

  • Problem with php processing page

    I am new to php and have created a form for my website online.  When testing upon submit the form goes to my email fine with all the fields coming in correct.  The problem I am having is the processing form is also sending a blank email along with the correct one and also i get at least one blank email a day.  I am not sure where I need to add something into my code or if it is just the users hitting submit without anything filled out. Also any tips and advice on how to prevent email injection would be much helpful. I have read up on this and not really sure where to add protection code. Thanks for the replies they will be much appreciated. 
    Here is the code from the php process page:
    <?php
    /* Subject and Email Variables */
    $emailSubject = 'Online Order';
    $webMaster = '[email protected]';
    /* Gathering Data Variables */
         $competition = $_POST['competition'];
         $product = $_POST['product'];
         $eventcitytwoField = $_POST['eventcitytwo'];
         $eventstateField = $_POST['eventstate'];
         $eventdateField = $_POST['eventdate'];
         $eventdatetwoField = $_POST['eventdatetwo'];
         $routineoneField = $_POST['routineone'];
         $routinetwoField = $_POST['routinetwo'];
         $routinethreeField = $_POST['routinethree'];
         $routinefourField = $_POST['routinefour'];
         $routinefiveField = $_POST['routinefive'];
         $routinesixField = $_POST['routinesix'];
         $firstnameField = $_POST['firstname'];
         $lastnameField = $_POST['lastname'];
         $phoneField = $_POST['phone'];
         $email = $_POST['email'];
         $shippingField = $_POST['shipping'];
         $shippingstateField = $_POST['shippingstate'];
         $zipcodeField = $_POST['zipcode'];
         $cctypeField = $_POST['cctype'];
         $ccnumberField = $_POST['ccnumber'];
         $expdateField = $_POST['expdate'];
         $expyearField = $_POST['expyear'];
         $billingaddressField = $_POST['billingaddress'];
         $billingcityField = $_POST['billingcity'];
         $billingstateField = $_POST['billingstate'];
         $billingzipField = $_POST['billingzip'];
         $commentsField = $_POST['comments'];
    $body = <<<EOD
    <br><hr><br>
    Competition: $competition <br>
    Product: $product <br>
    Event City: $eventcitytwo <br>
    Event State: $eventstate <br>
    Event Month: $eventdate <br>
    Event Day: $eventdatetwo <br>
    Routine One: $routineone <br>
    Routine Two: $routinetwo <br>
    Routine Three: $routinethree <br>
    Routine Four: $routinefour <br>
    Routine Five: $routinefive <br>
    Routine Six: $routinesix<br>
    First Name: $firstname <br>
    Last Name: $lastname <br>
    Email: $email <br>
    Phone Number: $phone <br>
    Shipping Address: $shipping <br>
    Shipping State: $shippingstate <br>
    Shipping Zip: $zipcode <br>
    Credit Card Type: $cctype <br>
    Credit Card Number: $ccnumber <br>
    Exp Month: $expdate<br>
    Exp Year: $expyear <br>
    Billing Address: $billingaddress <br>
    Billing City: $billingcity <br>
    Billing State: $billingstate <br>
    Billing Zipcode: $billingzip <br>
    Comments: $comments <br>
    EOD;
         $headers = "From: $email\r\n";
         $headers .= "Content-type: text/html\r\n";
         $success = mail($webMaster, $emailSubject, $body, $headers);

    You are not posting the data to a database, so you have fewer security concerns, but you SHOULD post to a database because as it is now, you probably have to re-enter all that data that comes in through the email. You can have the data sent to a database and then emailed in the same script.
    For form security, validate some fields using REGEX. The email address is an obvious one. You can also require that some fields be filled in, which will eliminate your blank submissions. Use CSS to hide a "dummy" field. Visitiors won't see it but spambots will see it and fill it out. Create a routine upon submission that rejects any submission that doesn't have that field blank. If you do change your form to post to a database, don't post to $_SERVER['PHP_SELF'] as that is not secure.
    You asked a big question and I just gave you some pointers above. Use the security forum at the following website for help with security issues:
    http://forums.devnetwork.net/index.php

Maybe you are looking for

  • Sync a folder between two users on the same computer.

    I would like to sync a folder between two users on the same computer so that they are always the same when I access them from either user.

  • How to move my license of adobe acrobat 8 pro from MAC to another MAC?

    How do i find my adobe acrobat CD key number if i dont have the installer CD? , i am trying to move my license of adobe acrobat 8 pro from MAC to another MAC, please advise how can i do that?

  • Finder crashes when copying files to Creative Cloud folder

    CC versions up to date, OS X 10.9.2. 3.2 G i5. Applications currently running : Linotype FOnt explorer, Bridge, Sublime, Codekit, iTunes, Chat. Trying to copy files to the Create Cloud folder invariably leads to an infinite beachball if the comp has

  • Twitter is not loading in FireFox 28

    Hi there all, Before asking the obvious questions, I have been in the forum for the last four hours looking for a solution to the question I have, which is "Why won't FireFox open the Twitter.com website. The little green disc goes round and round an

  • Mail help please

    I have a frozen mail screen, the send and cancel buttons are both grey. Any ideas how to unfreeze? I can not get to the mail boxes or anything else behind. Any ideas please? Thank you!