send form fields

Discussion in 'PHP' started by tableman, Apr 12, 2007.

  1. #1
    An email of form entries is sent to me using:

    <?php $entries="Name: $first_name $last_name\n ... etc 
    
    {mail ("sendform@myemail.net", "Subject in Question", $entries);} ?>
    Code (markup):
    A vendor says to also send the same entries to a file on their website in order to use their services.

    So I tried:

    echo '<a href="mailto:'http://vendorwebsite.com/receiving_file.jsp'", $entries>'; 
    Code (markup):
    That did not work, nor anything else I tried.

    What function or construct can be used to send the entries in the form to the file?
     
    tableman, Apr 12, 2007 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    They may mean setting the post action of the form to be their JSP file
     
    frankcow, Apr 12, 2007 IP
  3. tableman

    tableman Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The post action is dedicated to sending the entries to the file where I have all the code that sends the entries in an email to me, like this:

    <form method="post" action="<?php echo 'https://s.p2.hostingprod.com/@mysite.com/ssl/mycode.php?'; ?>"

    I need to both send the entries to me and also send the entries to their site.

    I am looking for a way to use mycode.php to both send me the entries in an email, which it already does, and also send the entries to the vendor's website.
     
    tableman, Apr 12, 2007 IP
  4. tableman

    tableman Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0