Contact Form: How do i create a link from an XML file to another domain to read a PHP File

So i purchased a template from Template Monster and im having a little trouble with the contact form. The server that im uploading it to is a privite server that the company owns. It supports ASP and not PHP. I cant seem to get the ASP form to work so all i want to do it create a link to another one of there servers that supports PHP and have the contact form link to there and read the PHP file (that i will upload to that server) and send the email from there.
This is the XML that i have to fill in in order to make it work
Everything in Red is what i needed to fill out in order for the form to work.
<?xml version="1.0" encoding="utf-8"?>
<!--
        Please read this information to learn how to set up the contact form integrated
        into the template.
        This readme file explains in details the meaning of the settings that can be
        done in the fcContactFormConfiguration.xml configuration file.
        It is recommended for you to use an XML editor to make changes to this file
         because it’s less possible to make an error in the markup which can cause to
        a not working contact form.
  -->
<contactFormConfiguration>
    <!--
            An e-mail address which will be used to receive messages from your contact form.
            You can specify several e-mail addresses separating them with a comma.
            For example: [email protected], [email protected], [email protected]
      -->
    <emailTo>[email protected]</emailTo>
    <!--
            A server script type which will process sending e-mails. It depends on your
            hosting and in the current version of the contact form it is allowed to use
            two types:  php (Apache, PHP Hosting); asp (IIS web server, ASP).
      -->
    <serverProcessorType>php</serverProcessorType>
    <!--
            A name of the script file which process sending e-mails on your server (without
            extension). The name contact is used by default.
      -->
    <serverProcessorFileName>contact</serverProcessorFileName>
    <!--
            Set whether to validate only required fields (true/false).  The default value is
            true which means the not required fields of your contact form will not be validated.
            For example if the e-mail field of your form is set as not required (imagine it)
            the form will be processed even if the user types in an incorrect e-mail address.
      -->
    <validateRequiredOnly>false</validateRequiredOnly>
    <!--
            Set whether to submit the form when the Enter key is pressed even if the focus is
            not on the Submit button (true/false).
      -->
    <submitFormOnEnter>false</submitFormOnEnter>
    <!--
            Text showing to the user when the form is submitted without any errors.
      -->
    <messageSentText>Thank you for your message.</messageSentText>
    <!--
            Text showing in case the form is not submitted because of a server error.
      -->
    <messageSentFailedText>Sorry, your message couldn't be sent</messageSentFailedText>
    <!--
            Text your visitor will see while waiting till the processing is over.
      -->
    <formProcessingText>processing...</formProcessingText>
    <!--
            Your SMTP server (for ASP only).
      -->
    <smtpServer>localhost</smtpServer>
    <!--
            Your SMTP port (for ASP only).
      -->
    <smtpPort>25</smtpPort>
    <!--
            Set whether to send the message as a plain text (true) or as HTML (false).
      -->
    <plainText>false</plainText>
    <!--
            ID of the input field (in the structure XML file) to use for the “from: ”
            or email to use instead (for example: [email protected]).
      -->
    <emailFromSource>2</emailFromSource>
    <!--
            Subject of the e-mails that will be sent through this contact form or ID of
            the input field (in the structure XML file) to use for the “subject: ” label
            in your e-mail client.
      -->
    <subjectSource>Contact Form from your site</subjectSource>
    <!--
            Validation error messages that are showing to the user when the form fails to
            validate. The form supports different types of validators. You can change the
            text of the error messages the validators produce here.
            You can use the {LABEL} keyword in these messages. It will replace it with the
            label value of the field where an error occurs.
      -->
    <validationErrorMessages>
        <!--
                A required field is not filled in.
          -->
        <message type="fieldIsRequired">{LABEL} is required.</message>
        <!--   
                The specified e-mail address is incorrect.
          -->
        <message type="emailNotValid">{LABEL} - is not valid email address.</message>
        <!--
                The specified number of characters in a field is less than a required minimum.
          -->
        <message type="minCharsLimitError">{LABEL} - The specified number of characters in a field is less than a required minimum.</message>
        <!--
                The specified string does not match with the regular expression.
          -->
        <message type="reqExpError">{LABEL} - The specified string does not match with the regular expression.</message>
        <!--
                The specified number is greater than an acceptable biggest number for this field.
          -->
        <message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable biggest number for this field.</message>
        <!--
                The specified number is lower than an acceptable lowest number for this field.
          -->
        <message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable lowest number for this field.</message>
        <!--
                The data is not a number.
          -->
        <message type="notANumberError">{LABEL} - The data is not a number.</message>
        <!--
                The specified number must not be negative.
          -->
        <message type="negativeError">{LABEL} - The specified number must not be negative.</message>
        <!--
                The minimum number of variants is not selected
          -->
        <message type="minRequirementError">{LABEL} - The minimum number of variants is not selected</message>
        <!--
                The number of variants selected exceeds the maximum
          -->
        <message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the maximum</message>
        <!--
                The fields that should be equal do not match
          -->
        <message type="shouldBeEqualError">{LABEL} - values do not match</message>
        <!--
                 The date has wrong format.
          -->
        <message type="dateIsNotValidError">{LABEL} - date has wrong format</message>
    </validationErrorMessages>
</contactFormConfiguration>
THIS IS THE ACTUAL CONTACT.PHP Form That i would like to link to.
<?php
//-----------------Getting data sent by flash---------------------
foreach ($_POST as $key => $value){
        if ($key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){
            $mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>';
            $mail_body .= ''.stripslashes($value).'<br/>';
$message = '<html><body>'.$mail_body.'</body></html>'; //  mail body
//------------if plain text is set to true removing html tags------
if ($_POST['plain_text']=='true') {
    $message = str_replace('<br/>',"\r\n", $message);
    $message = strip_tags($message);
} else {
//----otherwise composing message headers---------------------------
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=windows-1251' . "\r\n";
//------------setting conf data-------------------------------------
$to = $_POST['mail_to'];
$from = $_POST['mail_from'];
$subject = $_POST['mail_subject'];
$smtp_server = $_POST['smtp_server'];
$smtp_port = $_POST['smtp_port'];
//---------setting header info--------------------------------------
$headers .= 'From:' .$from;
if (mail($to, $subject, $message, $headers)){ // sending mail
    print('&mail=1');  //succes
} else {
    print('&mail=0');//failure
?>

You can open both Muse files at once, copy the content of a page on one site, then paste it into a new page on the other site. You might have to redo some of the page styling.

Similar Messages

  • How can I create a link from a CHM file to a webhelp file?

    How can I create a link from a CHM file to a webhelp file?
    The CHM output (accreditation.chm) is stored in a parent directory, and the webhelp output (index.htm) is stored in a child directory.

    Open the usual Link dialog and enter the relative path from where the CHM will be installed to where the webhelp will be installed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do I create a link from my site to my facebook page?

    How do I creat a link on my site to go to my facebook page?

    This MacWorld page may be of interest to you....
    http://www.macworld.com/article/143631/2009/11/fbiweb.html

  • How do I create a link from a pdf file to post on my website and Facebook?

    I have created a pdf file from a document.  Now I want to post a link to the pdf document on my website and on Facebook.  In my Adobe Reader XI there is a tab that says "Create Link", but when I click onto it, it just takes me back to the original file, where it is saved on my computer,  I am not real techy.  If anyone can explain this step by strep, I would really appreciate it. 
    Thank you.

    Reader will not be involved.
    First, you need to upload the pdf to your website. Once you upload the file, you need to add a link to it from a page on your website and Facebook.

  • How do I create a link from a webpage to a much smaller page?

    I want to link a picture on a full-sized web page to a much smaller window that contains more info about the picture - but do not know how to create a smaller window. Can anyone help?

    Once again, thank you. The FREE lightbox you provided a link to above is just beautiful. I couldn't find a way to link the larger photos to different pages on the site I am working on, but can think of many uses for it on the site (it's a home design and staging site).
    I did eventually find a behavior in Dreamweaver that let me create small windows to my specifications (Open Browser Window) and linkable to my images, so I'm a happy camper.
    The javascript you directed me to will come in very useful on other occasions - seems to me I learned that many years ago in web design school but conveniently forgot how to do it.
    Thanks,
    Sheila
    Message was edited by: sheilaroberts6

  • How do I create a hyperlink from one Muse website to another?

    I need to allow users to link to a related site.  The only choices I see are to link to a page in the same website or link to a file on my computer.

    Hi,
    Create a Text field and type some text, select text, and enter the URL manually, as shown in the screenshot below
    Hope this Helps

  • How can i create proxy service from another proxy on different domain

    i have a demo webservice. it has many operations on proxy service's message flow. How can i create proxy service from demo's wsdl on different domain
    Edited by: fresh man on Jul 1, 2012 11:17 PM

    You can either export the WSDL in a sbconfig.jar and then import this sbconfig.jar in the new domain. Then you can create a new Proxy in new domain based on the WSDL you imported.
    Alternatively, you can open the WSDL in the old domain, copy the text content of WSDL, then open new domain sbconsole and create a new WSDL type resource and paste the content you copied from old domain WSDL here. Then you can create a new Proxy Service based on this WSDL resource you created.
    Although, may I ask why do you need to create this new Proxy Service on a different domain? If you want to create a service similar to existing Proxy Service on different domain, then you can export the existing proxy service along with any dependencies to a sbconfig.jar and them import them in any other domain.
    If you want your new Proxy Service to invoke the existing Proxy on different domain, then you need to create a Business Service in the new domain (calling domain) which can invoke your existing Proxy service in other domain.

  • Sliding Flash Interface - Using Links from an XML file Problem

    Hi All,
    Working on a new site for the company i've recently started
    working for... fairly new to flash but wanted to try this sliding
    interface for the graphic banner at the top of the page...
    have a look here at an early version of the site - sliding
    graphic interface at the top with coloured rollover buttons (a lot
    of work still to do! feel free to post constructive criticism)
    (am I allowed to post links??)
    here is the unfinished version with no links in the flash bit
    http://www.westfieldhealth.com/website/index.asp
    The Problem:
    I am pulling in a 'heading' 'text' and 'image' into the
    sliding graphic interface from the following xml file... (there are
    4 different xml files for 4 different slides)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <content>
    <dialogue>
    <heading>Interested in selling our health
    plans?</heading>
    <text>Click here to learn more...</text>
    <img>home_window/intSmall.jpg</img>
    </dialogue>
    </content>
    I want to add a link to the xml that would be specific to
    each instance of the window...
    eg
    <link>contact-us/index.asp</link>
    But my limited knowledge of flash means I have no idea how to
    pull the link through from the xml file to use in the flash...
    Perhaps I need link text to pull as well
    eg
    <link-text>click here to contact us</link-text>
    Here is the function that pulls in the img, heading and txt
    public function onComplete(event:Event):void {
    var loader:URLLoader = event.target as URLLoader;
    if (loader != null) {
    externalXML = new XML(loader.data);
    mover_mc.heading_txt.htmlText =
    externalXML.dialogue[0].heading;
    mover_mc.myText_txt.htmlText = externalXML.dialogue[0].text;
    var url:URLRequest = new
    URLRequest(externalXML.dialogue[0].img);
    myLoader.load(url);
    } else {
    trace("loader is not a URLLoader!");
    Can anyone help me on how to pull in the link from the xml
    and use it to navigate to a different page on the site
    Thanks very much
    Hans
    link to
    my unfinished flash file...

    What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
    Cheers
    David

  • How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can"t find in any of the tutorials.

    How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can't find in any of the tutorials.

    The steps would be :
    - Add files from file menu > select pdf > add to site
    - Select the content (rectangle,text etc) and click on hyperlink dropdown > it should show you the added files list
    - Select the file you want to link
    Thanks,
    Sanjit

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • How can I create a link on an image?

    How can I create a link on an image?

    Select your image and in the hyperlinks tool on the toolbar simply type in your site address you want to link to. be sure to include the http:// before the domain name.

  • How do i create a link to an Anchor in Adobe Muse so that i can add the link in an email?

    How do i create a link to an Anchor in Adobe Muse so that i can add the link in an email?

    Create your anchor normally then in your email for example if your anchor is on your index page your link would look like http://www.yoursite.com/index.html#youranchor

  • How can i Create Database Link

    Dear Expert,
    I have two servers on that there are two databases then
    how can i create database link.

    CREATE [SHARED][PUBLIC] DATABASE LINK link_name
    [CONNECT TO user IDENTIFIED BY password]
    [AUTHENTICATED BY user IDENTIFIED BY password]
    [USING 'connect_string']

  • How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?

    How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
    Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
    I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
    Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
    I need to know details. Thanks.
    USE master
    go
    EXEC sp_addlinkedserver
         @server  = '{Linked Server Name}'
        ,@srvproduct = '{System DSN Name}'
        ,@provider  = 'MSDASQL'
        ,@datasrc  = '{System DSN Name}'
    EXEC sp_addlinkedsrvlogin
         @rmtsrvname = '{Linked Server Name}'
        ,@useself  = 'False'
        ,@locallogin = NULL
        ,@rmtuser  = '{Oracle User Name}'
        ,@rmtpassword = '{Oracle User Password}'

    You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
    You should not use MSDASQL or any DSN.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • Report on changes in CoGS

    Hi, We need a report on changes in COGS of a material. Any pointers? Thanks in advance. Pinkey

  • Using QI06

    Hi,     Has anyone used QI06 successfully to create QIRs from PIRs?  I am trying to run the report an selected the "only from purchase info records" checkbox on the initial screen. The report runs but does not create any QIRs. Also if anyone has used

  • Data purging in 11i

    Hi All, I am new to Oracle 11i apps. i would like to know, 1. What are the tables or logs need to be purge in periodic basis? 2. Why i need to purge those tables or logs? 3. Am i need to do it manually or scripts exists in the server? 4. Is there any

  • Use applescript to create itunes smart playlists

    hi is the subject possible? my setup uses an intricate system of smart playlists building other smart playlists. when i add a new "theme", as i call it, like "party", "chart", "sad", "happy", etc, i dont want to have to go back through and create doz

  • Image swap based on month

    I have a site that I want to set themed months too by having an image swap. I've tried searching the web for various image swaps but nothing seems to come up that would read the users calender to figure out what image to display. I was wondering if y