Does a PHP file need to be attached to the HTML file?

I know that CSS files need to attach to the html files, but what about PHP? Because when I try to test it, it asks me to make it a test server, but it never works. I know I'm missing. Please help. Thank you!
This is my html form:
<form action="form_process" method="post" name="contact_form">
<form class="form">
<p class="name">
<input type="text" name="name" id="name" placeholder="John Doe" />
<label for="web">Name</label>
</p>
<p class="email">
<input type="text" name="email" id="email" placeholder="[email protected]" />
<label for="email">Email</label>
</p>
<p class="phone">
<input type="text" name="phone" id="phone" placeholder="555-555-5555" />
<label for="phone">Phone</label>
</p>
<p class="text">
<textarea name="text" placeholder="Questions or Comments"></textarea>
</p>
<p class="submit">
<input type="submit" value="Send" />
</p>
</form>
This is my PHP:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['text'];
$to = "[email protected]";
$subject = "New Message";
mail ($to, $subject, $message, "From: " . $name);
echo "Your message has been sent."
?>

No.  A Local Testing Server is software that you install on your local computer so you can parse PHP scripts to test them in your local browsers.  It's not very complicated.
Get one of the following Apache servers for your OS and follow the installation instructions.
WAMP for Windows
http://www.wampserver.com/en/
XAMPP for Windows
http://www.apachefriends.org/en/xampp-windows.html
XAMPP for Mac
http://www.apachefriends.org/en/xampp-macosx.html
MAMP for Mac
http://www.mamp.info/en/downloads/index.html
See Setting up a PHP environment in Dreamweaver
http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
Nancy O.

Similar Messages

  • Problem launching Firefox from Windows with file path that contains space characters in the html file's file name

    We have a software application that programmatically launches the default web browser using the Windows shell execute function ("ShellExecuteA" in the "shell32.dll" library of the Windows API) along with a file path for a saved local html file that is to be displayed. In the case that FireFox is the default browser and the file path for the html file contains any space characters in the html file's file name, Firefox (in this case v7.01) will display an error message "File not Found..." and then will also proceed to open tabs for each of the individual words in the file name, launching as the URL path, each individual word appended to ".com".
    In the following example, the path "C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm" when launched programmatically, resulted in the error message "File not Found...Firefox can't find the file at /C:/KSSecOfState/Forms/Kansas." and opened up browser windows for "http://www.secretary.com/", "http://www.of.com/", "http://www.state.com/", "http://www.and.com/", and attempted to launch "http://forms.htm". If the same file (renamed) is launched using the path string "C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm" the file opens up correctly in Firefox. Clearly the presence of spaces in the file name is causing the problem.
    I should also note that either path (with or without space characters) works properly if pasted directly into the Firefox URL path menu bar for a live instance of Firefox. The test path strings I used were:
    C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm
    C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm
    Does anyone know anything about this problem or how to work around it (other than the obvious answer of taking the spaces out of the file name which is not possible for this application). It seems the problem is specific to Firefox. IE works properly if launched programmatically with spaces in the file name passed to it. I haven't tested other browsers yet.
    Thanks!

    If starting from ShellExecute works the same as starting from the command line then there are two options:<br>
    Put everything inside double quotes<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''"c:\test\svg test.htm"'''<br>
    Convert to a valid url with file:// protocol and percentage-escaping the space<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''file://c:\test\svg%20test.htm'''<br>

  • Modifying the HTML files for a service

    Hi All:
    We are in SAP R/3 4.6c and EP 6.0.  We will be using the standalone ITS for our ESS Services.
    We would like to modify the standard delivered service for edit skills - PZ31_EWT.
    What is the procedure for modifying the HTML files.  Where can we see the HTML files associated with a service ?
    Is it on the ITS side or via SE80?
    Thanks
    Rachel

    Hi Rachel,
    You've just about reached the limits of what I know about changing ESS ITS services I'm afraid.
    I didn't see PZ31_EWT listed under Internet services either so Im guessing the ITS service PZ31 name remains unchanged. If you double click on the top level folder in the tree, called PZ31, the details of the ITS service are displayed. Its not obvious that you can do this as it just looks like a folder, but if you do and select the Parameters tab you can see if lists TRANSACTION=pz31 and WEBTRANSACTIONTYPE =EWT which sounds suspiciously similar to what you were expecting.
    You could test this by putting some text in the PZ31 HTML template, publishing, and checking it is displayed.
    You can (copy and) modify the templates with straight HTML and the Business HTML macro language, which is a bit of a black art but you can access the help via the 'Business HTML overview' button on the toolbar.
    I found a sentence in my handover notes from an ESS guru that reads 'Customization to ESS page layout are not easily done. You need to copy and modify the ITS service and edit the business HTML templates'.
    The only other way I know to modify ESS is through the SPRO transaction.
    Thats about all I can tell you about ESS Im afraid!
    Cheers,
    Steve

  • Cannot read the html files

    I cannot seem to make JavaHelp find my HTML files, although it has found my Map and XML files.
    The structure is as follows:
    - the XML files are in myclasspath/doc/onlinehelp
    - the HTML files are in myclasspath/doc/onlinehelp/html
    How should I reference them from my Map.jhm file?
    Have I forgottoen any enviroment variables?
    This is really urgent
    Thanks
    Bj?rn

    The entries in your map file should take the form
    <mapID target="target_string" url="html/filename.htm" />
    so that the url includes the relative path from the directory where the xml files are.

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • Adobe 9.5 deletes log files - need to turn off creation of log files

    We have a bunch of files from SAS outputs that include a .sas, .rtf, .log extensions.
    When we try to convert a batch of the .rtf files to PDF by right clicking on them, the .log files are deleted. The originals are not Adobe .log files, but required files from the SAS output.
    I have unchecked "Delete Log Files for Successful jobs" in both Distiller and the Adobe printer preferences.
    It only deletes the .log with the same name as file types associated with Word. If I create .txt or xls files and .log files with the same name (i.e. test.txt and test.log) it does not delete the .log file, but it is overwritten by the Adobe log.
    This happens whether the file is local or on a mapped network drive.
    If I save to a different location, the .log is not deleted or overwritten, but that is really just a workaround. It's doable if it's the only option.
    They can also copy only the .rtf files to another folder and copy the .pdf files back after, but this is alot of extra work for high volumes
    This is an ongoing need involving lots of files, so moving or renaming is not an option, even with batch programs.
    What I really need to do is stop Adobe from creating AND deleting log files or force it to create the .log files in a different location than the original. Unless the problem is Word, but I cannot find any information on this problem.
    Thanks
    Mike

    Hi Shay,
    You are right, it would make perfect sense, however as you can see from the below forum, I was not able to solve this compilation issue..
    Oracle 10g Email Portlet - HELP PLEASE!!!
    (First post is the issue).
    If you have any ideas on how I could solve it, it would be great.
    Thanks
    Sam

  • How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.

    How is it best to keep files synced between iMac and Macbook?  I work from home on my iMac and then out in meetings on my Macbook and need to have access to the same files on both.  The folders are using Microsoft programmes as this is compatiable with 90% of my colleagues, therefore I can't use the Icloud service.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • What I need to do? default icon of Firefox didn't seen on the ".html" file.

    default icon of Firefox didn't seen on the ".html" file.
    i have change the icon threw the open with but i didn't work yet.

    Is Firefox set as the default browser in Windows?
    Windows7 has it under Control Panel > Programs >> Default Programs - Set Default Programs -- Set Program Associations.

  • Files created in DW with slices, how can I email the html files to someone

    Hello,
    I was wondering if someone could help me please? I created my first website in DW CS4. I used Illustrator to create it, added slices, then did the rest in DW. My site is not live yet - I have not yet uploaded the files to the web host. However, I need to email the .html file to someone so that they can see what I have created so far for the site. But when I attach the .html files, the person I send them to cannot view them - when they open the file it is just a bunch of placeholders where the slices are and you can't see the web page at all. I am a newbie to web design so this is probably quite an ignoramus question. I appreciate any help anyone can give me!!

    The best practice is to upload the site to a TEST folder on your  remote server for debugging purposes.  (yourdomain.com/TEST/index.html)
    Then send your client an email with the URL so they can see the site.  When you're done testing & debugging, remove the TEST folder from remote server.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • If I delete a file in iCloud, what happens to the local file in ~/Library/Mobile Documents ?

    If I delete a file in iCloud, what happens to the local file in ~/Library/Mobile Documents ? Does it get deleted to?
    Hope somebody can help.
    Thx.

    I'm pretty certain that it gets deleted as well. If you try and open that mobile documents folder, it takes you to the iCloud drive folder. I've been searching for this same issue for the last 24 hours also as I inadvertently deleted my Keynote files stored on iCloud drive thinking I was just temporarily deleting Keynote from my iPad when upgrading to the latest iOS 8 version. (I needed space and thought, "Oh, I'll just reinstall later... Turns out I was in the iCloud storage area, not in my iPad storage area at the time and therefore deleted all my iCloud stored presentations. From every device.)

  • Actionscript not working on the HTML file PLEASE HELP

    Hello,
          I made a website in flash, you can download everything here, because I need this problem fixed by Monday http://www.mediafire.com/?sharekey=e5d0b30598ff413aa0f2f20c509059d9e04e75f6e8ebb871
         The problem is, when I publish the file, and run the html file, the actionscript doesn't work. When I run the project in flash it works perfectly. I do not believe it is the player or anything of that sort that is wrong, although I can not be sure. I've tried this on like 10 different computers, and none were able to load the actionscript. Does anyone know why the actionscript wouldn't be working when I run the html file for the site?
    Please Help, Thank you.

    Hi !
    Don't panic yet
    I think you didn't select the Flash with SFCommand in the HTML tab inside the Template dropdown menu,  that's the reason your Actions Scripts doesn't work in the html view.
    To access hold down CTRL+SHIFT+F12--->HTML tab--->The first dropdown menu at the top
    Hope this solve your problem.

  • Moved iTunes library to an ext hard drive to make space on my int drive... Followed steps from apple.  Now I cannot access my music... It says: "File could not be used because the original file cannot be found.  Would you like to locate it?"

    Moved iTunes library to an ext hard drive to make space on my int drive... Followed steps from apple.  Now I cannot access my music... It says: "File could not be used because the original file cannot be found.  Would you like to locate it?"
    I moved my iTunes library to my external hard drive some time ago and I followed the directions listed here on the apple support page.  It did copy my library and now is on my hard drive... I can open iTunes and use it to sync all of my devices but I would like to play my music... I can see all of my music files but can not play them if I click on an album or song it says the following:  "(file name) could not be used because the original file cannot be found.  Would you like to locate it?"  I click locate but do not know where to go from there?  I need a way to access all files and not to hunt down one at a time on my hard drive... I am pretty sure I deleted the original library to make space on my internal drive which was the reason for moving it.  I have tried and tried to fix it and do not have a lot of time to do so with a one and two year old at my house who do not like it whenI sit down at my computer.  What to do???  Any help is much appreciated!!!

    See Make a split library portable. Move all of the bits of the library together in the the correct shape and it should work. Or undo exactly what you did and then start over.
    If you're a former Windows user don't try merging two folders together that have the same name by dropping one into the same folders as the other, as that goes badly on a Mac.
    tt2

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • How do i change the HTML file names for existing index

    Hi,
    How do i change my existing HTML file names for indexes. The Html file name is disabled when we click on properties.
    Ex:   Index Keywork : Architecture
            Old HTML Page/URL =: Architecture.htm
    I want to change  Old HTML Page/URL =: Architecture.htm to architecture_new.htm
    Please find the screenshot attached.

    That's because you are looking at the Properties and that is not how you create index entries.
    Highlight the Index keyword ("Paste" in this example). It shows below what is already linked. If you delete that, the keyword will be displayed in bold to show no keyword is attached. You can add further keywords by dragging them from the Topic List.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Why the html file doesn't change with applet ?

    i am new to java , i get a problem when i am modifying a applet . i recompile it to .class file but did not change its name . and the .html file which use the applet doesn't change with it , it still shows the original style , even when i delete the .class file . it works until i changed the name of the source file and use the different .class file in html . it's troublesome if i need to modify the source file because i must change the name to get it . can you tell me why and how could i avoid this ?

    I am new also & had a similar experience.
    In my case it was aftercompiling and trying to refresh the browser to get it to display the new version of my applet. I got around this by holding Ctrl down and pressing F5 to refresh.
    Also, some of the systems at university cause exactly the problem you describe. Not sure why it should work but we overcame it by placing our files in the JDK folder on those systems & it worked properly. May be worth a try.

Maybe you are looking for