My  PHP  form no longer works?

Hi
http://www.collegestudentvoice.com/form/form.php
1. Programmer says there is no coding errors.  Nothing has changed.
2. Host says there must be coding errors.
3. There may version incompetibilities with Perl script between the form and the host version.
these are 3 files:
Sendform:
<?php
// Pear library includes
// You should have the pear lib installed
include_once('Mail.php');
include_once('Mail/mime.php');
//Settings
$max_allowed_file_size = 10000000; // size in KB
$allowed_extensions = array("jpg", "jpeg", "gif", "bmp");
$upload_folder = 'files/'; //<-- this folder must be writeable by the script
$your_email = '[email protected]';//<<--  update this to your email address
$errors ='';
if(isset($_POST['submit']))
    //Get the uploaded file information
    $name_of_uploaded_file =  basename($_FILES['uploaded_file']['name']);
    //get the file extension of the file
    $type_of_uploaded_file = substr($name_of_uploaded_file,
                            strrpos($name_of_uploaded_file, '.') + 1);
    $size_of_uploaded_file = $_FILES["uploaded_file"]["size"]/1024;
    ///------------Do Validations-------------
    if(empty($_POST['name'])||empty($_POST['email']))
        $errors .= "\n Name and Email are required fields. ";   
    if(IsInjected($visitor_email))
        $errors .= "\n Bad email value!";
    if($size_of_uploaded_file > $max_allowed_file_size )
        $errors .= "\n Size of file should be less than $max_allowed_file_size";
    //------ Validate the file extension -----
    $allowed_ext = false;
    for($i=0; $i<sizeof($allowed_extensions); $i++)
        if(strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)
            $allowed_ext = true;       
    if(!$allowed_ext)
        $errors .= "\n The uploaded file is not supported file type. ".
        " Only the following file types are supported: ".implode(',',$allowed_extensions);
    //send the email
    if(empty($errors))
        //copy the temp. uploaded file to uploads folder
        $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
        $tmp_path = $_FILES["uploaded_file"]["tmp_name"];
        if(is_uploaded_file($tmp_path))
            if(!copy($tmp_path,$path_of_uploaded_file))
                $errors .= '\n error while copying the uploaded file';
        //send the email
        $name = $_POST['name'];
        $visitor_email = $_POST['email'];
        $user_message = $_POST['message'];
        $to = $your_email;
        $subject="New form submission";
        $from = $your_email;
        $text = "A user  $name has sent you this message:\n $user_message";
        $message = new Mail_mime();
        $message->setTXTBody($text);
        $message->addAttachment($path_of_uploaded_file);
        $body = $message->get();
        $extraheaders = array("From"=>$from, "Subject"=>$subject,"Reply-To"=>$visitor_email);
        $headers = $message->headers($extraheaders);
        $mail = Mail::factory("mail");
        $mail->send($to, $headers, $body);
        //redirect to 'thank-you page
        header('Location: thank-you.html');
///////////////////////////Functions/////////////////
// Function to validate against any email injection attempts
function IsInjected($str)
  $injections = array('(\n+)',
              '(\r+)',
              '(\t+)',
              '(%0A+)',
              '(%0D+)',
              '(%08+)',
              '(%09+)'
  $inject = join('|', $injections);
  $inject = "/$inject/i";
  if(preg_match($inject,$str))
    return true;
  else
    return false;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>File upload form</title>
<!-- define some style elements-->
<style>
label,a, body
    font-family : Arial, Helvetica, sans-serif;
    font-size : 12px;
</style>   
<!-- a helper script for vaidating the form-->
<script language="JavaScript" src="scripts/gen_validatorv31.js" type="text/javascript"></script>   
</head>
<body>
<?php
if(!empty($errors))
    echo nl2br($errors);
?>
<form method="POST" name="email_form_with_php"
action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data">
<p>
<label for='name'>Name: </label><br>
<input type="text" name="name" >
</p>
<p>
<label for='email'>Email: </label><br>
<input type="text" name="email" >
</p>
<p>
<label for='message'>Message:</label> <br>
<textarea name="message"></textarea>
</p>
<p>
<label for='uploaded_file'>Select A File To Upload:</label> <br>
<input type="file" name="uploaded_file">
</p>
<input type="submit" value="Submit" name='submit'>
</form>
<script language="JavaScript">
// Code for validating the form
// Visit http://www.javascript-coder.com/html-form/javascript-form-validation.phtml
// for details
var frmvalidator  = new Validator("email_form_with_php");
frmvalidator.addValidation("name","req","Please provide your name");
frmvalidator.addValidation("email","req","Please provide your email");
frmvalidator.addValidation("email","email","Please enter a valid email address");
</script>
<noscript>
<small><a href='http://www.html-form-guide.com/email-form/php-email-form-attachment.html'
>How to attach file to email in PHP</a> article page.</small>
</noscript>
</body>
</html>
FORM:
<!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>College Student</title>
<link rel="stylesheet" type="text/css" href="css/view.css" media="all">
<script type="text/javascript" src="js/view.js"></script>
<script src="js/forms.js" type="text/javascript"></script>
</head>
<body id="main_body" >
    <div id="form_container">
<form action="formaction.php" method="post" enctype="multipart/form-data" name="contactus" id="contactus"  style="border:none;" onsubmit="return validateForm()">
                    <div class="form_description">
            <h2><img src="CSVlogo.GIF" width="269" height="97" alt="Logo" /></h2>
            <p>Please type in your first and last names along with our school email address (i.e., [email protected]) when submitting your articles or photographs.</p>
<p>Select the category that best describes the subject of  your article or photograph. (i.e., Business, Politics, Sports, Humor, etc.)</p>
<p>When writing about a sporting event please include the name of the sport in the ‘Subject’ line of your email along with the date of the event and the names of the teams. (i.e., Basketball 01-15-11 L.A. Lakers vs.Detroit Pistons)</p>
        </div>       
        <div>
                <?php
if (isset($_GET['suc'])) {
echo "<div style='color:#F00; padding:15px; display:block; margin:10px 0 10px 0;'> ";
echo "Thank you for your submission!";
echo "</div>";
} else {
?>
</div>
            <ul >
                    <li id="li_5" >
        <label class="description" for="Business">Business </label>
        <div>
        <select class="element select medium" name="Business">
            <option value="" selected="selected"></option>
<option value="Classified" >Classified</option>
<option value="careertips" >Career Tip</option>
        </select>
        </div>
        </li>        <li id="li_6" >
        <label class="description" for="ProfessionalSports">Professional Sports </label>
        <div>
        <select class="element select medium" name="ProfessionalSports">
            <option value="" selected="selected"></option>
<option value="NBA" >NBA</option>
<option value="NFL" >NFL</option>
<option value="MLB" >MLB</option>
<option value="otherprosports" >Other</option>
        </select>
        </div>
        </li>        <li id="li_7" >
        <label class="description" for="Humor101">Humor 101</label>
        <div>
        <select class="element select medium" name="Humor101">
            <option value="" selected="selected"></option>
<option value="Cartoons" >Cartoons</option>
<option value="Jokes" >Jokes</option>
<option value="Stories" >Stories</option>
<option value="Photographs" >Photographs</option>
        </select>
        </div>
        </li>        <li id="li_8" >
        <label class="description" for="CollegeSports">College Sports</label>
        <div>
        <select class="element select medium" name="CollegeSports">
            <option value="" selected="selected"></option>
<option value="basketballcollege" >Basketball</option>
<option value="baseballcollege" >Baseball</option>
<option value="Footballcollege" >Football</option>
<option value="Softball" >Softball</option>
<option value="othercollege" >Other</option>
        </select>
        </div>
        </li>        <li id="li_9" >
        <label class="description" for="Politics">Politics</label>
        <div>
        <select class="element select medium" name="Politics">
            <option value="" selected="selected"></option>
<option value="statelocal" >State/Local</option>
<option value="National" >National</option>
<option value="World" >World</option>
        </select>
        </div>
        </li>        <li id="li_1" >
        <label class="description" for="element_1">Name </label>
        <span>
            <input id="First" name="First" class="element text" maxlength="255" size="40" value=""/>
            <label>First</label>
        </span>
        <span>
            <input id="Last" name= "Last" class="element text" maxlength="255" size="40" value=""/>
            <label>Last</label>
        </span>
        </li>       
        <li id="li_sub" >
        <label class="description" for="Subject">Subject </label>
        <div>
            <input id="Subject" name="Subject" class="element text medium required" type="text" maxlength="255" value=""/>
        </div>
        </li>   
        <li id="li_2" >
        <label class="description" for="Email">Email </label>
        <div>
            <input id="Email" name="Email" class="element text medium required email" type="text" maxlength="255" value=""/>
        </div>
        </li>        <li id="li_3" >
        <label class="description" for="EmailC">Confirm Email </label>
        <div>
            <input id="EmailC" name="EmailC" class="element text medium" type="text" maxlength="255" value=""/>
        </div>
        </li>        <li id="li_4" >
        <label class="description" for="Suggestions">Suggestions </label>
        <div>
            <textarea id="Suggestions" name="Suggestions" class="element textarea medium"></textarea>
        </div>
        </li>
      <li id="li_5" >
        <label class="description" for="Upload">Upload File </label>
<input type="file" name="uploaded_file">
        <div>
          </div>
        </li>
        <li id="li_6" >
        <label class="description" for="Upload">Are you human?</label>
        <?php
        require_once('recaptchalib.php');
          $publickey = "6LfwwsISAAAAAA7UTKJcDATLiK-e55gPFW1Opfrq"; // you got this from the signup page
          echo recaptcha_get_html($publickey);
        ?>
        <div>
          </div>
        </li>
                    <li class="buttons">
                <input type="submit" name="Submit" value="Submit" class="button" />
</li>
            </ul>
</form>
<!--        <div id="footer">
        </div>
-->    </div>
</body>
</html>
FORMACTION
<?php
  require_once('recaptchalib.php');
$privatekey = "6LfwwsISAAAAAAPShkJ6nV3qkgLDHCe2uXj9RTWw";
  $resp = recaptcha_check_answer ($privatekey,
                                $_SERVER["REMOTE_ADDR"],
                                $_POST["recaptcha_challenge_field"],
                                $_POST["recaptcha_response_field"]);
  if (!$resp->is_valid) {
    die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
  else {
include_once('Mail.php');
include_once('Mail/mime.php');
$errors ='';
$max_allowed_file_size = 10000000; // size in KB
$allowed_extensions = array("jpg", "jpeg", "gif", "bmp");
$upload_folder = 'files/';
    $name_of_uploaded_file =  basename($_FILES['uploaded_file']['name']);
    $type_of_uploaded_file = substr($name_of_uploaded_file,
                            strrpos($name_of_uploaded_file, '.') + 1);
    $size_of_uploaded_file = $_FILES["uploaded_file"]["size"]/1024;
    if($size_of_uploaded_file > $max_allowed_file_size )
        $errors .= "\n Size of file should be less than $max_allowed_file_size";
    $allowed_ext = false;
    for($i=0; $i<sizeof($allowed_extensions); $i++)
        if(strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)
            $allowed_ext = true;       
    if(!$allowed_ext)
        $errors .= "\n The uploaded file is not supported file type. ".
        " Only the following file types are supported: ".implode(',',$allowed_extensions);
    if(empty($errors))
        $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
        $tmp_path = $_FILES["uploaded_file"]["tmp_name"];
        if(is_uploaded_file($tmp_path))
            if(!copy($tmp_path,$path_of_uploaded_file))
                $errors .= '\n error while copying the uploaded file';
        $Business = Trim(stripslashes($_POST['Business']));
        $ProfessionalSports = Trim(stripslashes($_POST['ProfessionalSports']));
        $Humor101 = Trim(stripslashes($_POST['Humor101']));
        $CollegeSports = Trim(stripslashes($_POST['CollegeSports']));
        $Politics = Trim(stripslashes($_POST['Politics']));
        $EmailToBusiness = $Business . "@collegestudentvoice.net";
        $EmailToProfessionalSports = $ProfessionalSports . "@collegestudentvoice.net";
        $EmailToHumor101 =  $Humor101 ."@collegestudentvoice.net";
        $EmailToCollegeSports = $CollegeSports . "@collegestudentvoice.net";
        $EmailToPolitics = $Politics . "@collegestudentvoice.net";
        $EmailTo = "[email protected]";
        $EMailSubject = Trim(stripslashes($_POST['Subject']));
        $First = Trim(stripslashes($_POST['First']));
        $Last = Trim(stripslashes($_POST['Last']));
        $Email = Trim(stripslashes($_POST['Email']));
        $Suggestions = Trim(stripslashes($_POST['Suggestions']));
        $Body = "The following form has been filled";
        $Body .= "\n";
        $Body .= "---------------------------------------------------------------------------------";
        $Body .= "\n";
        $Body .= "\n";
        $Body .= "First Name: ";
        $Body .= $First;
        $Body .= "\n";
        $Body .= "Last Name: ";
        $Body .= $Last;
        $Body .= "\n";
        $Body .= "Email: ";
        $Body .= $Email;
        $Body .= "\n";
        $Body .= "Business: ";
        $Body .= $Business;
        $Body .= "\n";
        $Body .= "Professional Sports: ";
        $Body .= $ProfessionalSports;
        $Body .= "\n";
        $Body .= "Humor 101: ";
        $Body .= $Humor101;
        $Body .= "\n";
        $Body .= "College Sports: ";
        $Body .= $CollegeSports;
        $Body .= "\n";
        $Body .= "Politics: ";
        $Body .= $Politics;
        $Body .= "\n";
        $Body .= "Suggestions: ";
        $Body .= $Suggestions;
        $Body .= "\n";
        $Body .= "\n";
        $Body .= "---------------------------------------------------------------------------------\n";
        $Body .= "Emails sent to: " . strtolower($EmailToBusiness) . " / " .strtolower($EmailToProfessionalSports). " / " .strtolower($EmailToHumor101). " / " .strtolower($EmailToCollegeSports). " / ".strtolower($EmailToPolitics). "";
        $to = "[email protected]";
        $subject= $EMailSubject;
        $from = "[email protected]";
        $text = "\n $Body";
        $message = new Mail_mime();
        $message->setTXTBody($text);
        $message->addAttachment($path_of_uploaded_file);
        $body = $message->get();
        $extraheaders = array("From"=>$from, "Subject"=>$subject,"Reply-To"=>$Email);
        $headers = $message->headers($extraheaders);
        $mail = Mail::factory("mail");
        $mail->send($to, $headers, $body);
        if ($Business != "")
                    $mail->send(strtolower($EmailToBusiness), $headers, $body);
        if ($ProfessionalSports != "")
                    $mail->send(strtolower($EmailToProfessionalSports), $headers, $body);
        if ($Humor101 != "")
                    $mail->send(strtolower($EmailToHumor101), $headers, $body);
        if ($CollegeSports != "")
                    $mail->send(strtolower($EmailToCollegeSports), $headers, $body);
        if ($Politics != "")
                    $mail->send(strtolower($EmailToPolitics), $headers, $body);
        print "<meta http-equiv=\"refresh\" content=\"0;URL=form.php?suc=y\">";
?>

bregent,
you have explained everything was is happening.
Mine firewall setttings block the scrip so when I fill the form and submit it, I do not get any errors, but that form information does not go anywhere.
All firewall setting should be OFF  when a form is submitted?
dreamweavewr101.1

Similar Messages

  • Sending mail via forms no longer working

    Recently, on one of our servers (XServe G4 - 10.3.9) was running both web and mail. Mail was moved off of the server 2 days ago onto a newer server (10.4.7)
    The web server has: php4.3.11 and is ONLY running AFP/OD/Web
    Since the transfer of the mail server to the new machine, all web sites can no longer send mail via their scripts (either by sendmail, php's mail(), or by connecting to SMTP server via php).
    The web logs do not show errors when it attempts to send the mail...
    A look at mail.log shows
    "relay=cyrus, delay=2558, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_)
    As far as I'm aware, the web server/sendmail shouldn't be attempting to use cyrus at all. For the record, Cyrus master is not running.
    All users can access the mail server without any difficulty. DNS entries have been checked and double checked.
    Does anyone know why sendmail and php mail functions stopped working? I really need to get these web forms functioning again. Is the problem with apache, php, sendmail or something else?

    Hi Camelot,
    Thanks for the quick reply and useful suggestion. I did as you mentioned and fired up the mail server.
    The mail "delivered" however, I notice a couple issues in the logs (mail.log)
    issue #1: I have to start cyrus master manually via > sudo /usr/bin/cyrus/bin/master SA and command line start/stop of mail does not start master. Also, when starting master from command line as mentioned, terminal hangs.
    issue #2 (from mail.log) - still getting the same lmtpd error (but messages do finally get delivered):
    Jan 14 03:58:24 www postfix/pipe[2914]: 3503858502D: to=<[email protected]>, relay=cyrus, delay=5327, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmptd_ )
    Jan 14 03:59:39 www postfix/cleanup[2906]: B60AE58572B: to=<[email protected]>, relay 123.123.123.123[123.123.123.123], delay=0, status=sent (250 Ok: queued as 9FBF41BCBCA)
    Do you think these are "issues" to contend with or are they "normal" occurances?

  • My created forms no longer work

    I use Acrobat 9 Pro.  I have several forms that I have created that no longer work.  I can fill in only some of the fields (whichever the system allows me to that day) and cannot save anything without receiving an error.  If I try to print what little the document allowed me to fill in, only the form fields will print- not even the non-editable text will print. I need access and use of these forms.  I have already tried the Repair feature in the program to no avail.  Can someone please help?

    Hello.  I believe I found the answer to the problems yesterday.  After trying everything I could from different forums and getting nowhere, I looked at the Adobe Properties by right clicking on the program.  Once in Properties, there is a compatability tab.  I run Windows 7 Pro 32bit.  Nevertheless, I selected the box that says "Run this program in compatability mode for" and then selected Windows 7.  It seems ridiculous to run the program in compatability mode for the OS I actually have on my system but it has done the trick.  All forms work now and my other PDF issues around the office have been resolved.  The only downside is that some PDF documents are printing slowly, but at least everything works. 
    ps: I first tried running compatabiilty mode for XP but it caused several credentialing issues with my systyem and our network, allowed forms to work, but only if they originated from my system (not the network) and did not allow other PDFs to open. 

  • Submit input in my form no longer works in Safari

    I have a form that I use to have people send me their inquires. When I click "submit" in Safari - nothing happens. When I use Firefox on mac, firefox on windows and IE on window, the submit button works fine.
    Below is the form code I am using:
    <form action="contactconfirm.php" method="post" name="contactForm" id="contactForm">
    <fieldset id="contact">
    <legend>Contact Information</legend>
    <label class="blockLabel">
    Name:
    <input name="Name" type="text" id="Name" size="50" />
    </label>
    <label class="blockLabel">
    Company name (if applicable):
    <input name="Company_Name" type="text" id="Company_Name" size="50" />
    </label>
    <label class="blockLabel">
    Daytime Phone: (Include area code)*
    <input name="Day_Phone" type="text" id="Day_Phone" size="50" />
    </label>
    <label class="blockLabel">
    Evening Phone: (Include area code)
    <input name="Evening_Phone" type="text" id="Evening_Phone" size="50" />
    </label>
    <label class="blockLabel">
    Email:*
    <input name="Email" type="text" id="Email" size="50" />
    </label>
    </fieldset>
    <fieldset id="location">
    <legend>Location/Time of Event</legend>
    <label class="blockLabel">
    Event Date (00/00/0000):
    <input name="Event" type="text" id="Event" maxlength="10" />
    </label>
    <label class="blockLabel">
    Location (city,state):
    <input name="Location" type="text" id="Location" maxlength="100" />
    </label>
    </fieldset>
    <fieldset id="details">
    <legend>More detailed information</legend>
    <label for="Description" class="blockLabel">Please describe event or service you are requesting:
    </label>
    <textarea rows="4" name="Description" id="Description" cols="93"></textarea>
    Best Time to Contact You:
    <label>
    <input type="radio" checked="checked" name="Contact_Time" value="Daytime" id="Daytime" />
    Daytime
    </label>
    <label>
    <input type="radio" name="Contact_Time" value="Evening" id="Evening" />
    Evening
    </label>
    <label>
    <input type="radio" name="Contact_Time" value="Weekend" id="Weekend" />
    Weekend
    </label>
    </fieldset>
    Please note: We respond to all inquiries. If you do not receive a response within 24 hours please call us at (540) 722-9000.
    <label style="font-size:14px">To verify you are human, please enter the first three letters of the following:
    <?php
    $ranstr = chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90)) . chr(mt_rand(65,90));
    echo chunk_split($ranstr,1,' ');
    ?>
    <input name="ranstr" type="text" size="90" maxlength="75" />
    </label>
    <input name="checkran" type="hidden" id="checkran" value="<?php echo hash('sha1',substr($ranstr,0,3).'trickery is everything');?>" /> <input type="submit" value="Submit" /> <input type="reset" value="Reset" />
    </form>

    I'm having a similar difficulty.
    I have a website designed in Flash, with a registration form which uses a php script to send the registration information as an email.
    Testing the flash file locally, everything works. Test the html page (locally) - in Safari - everything works. Try the page online - in Safari - no joy. Try the same in Firefox - bingo, the email is sent.
    To further drive me crazy, using my test html file and basic flash form, on the same server, same directory and same php script as the web site.... Safari does work????????

  • Fill - In Form no longer working

    I originally had a fill-in form. Once it was saved, I could no longer access the fields to type in. It also will not let me scroll in parts of the application I am filling out.
    Thanks for your help in advanced!

    Problem solved. I guess I didn't type the dash correctly. Re-did it and now the hotkeys appear in the accounts list and they work when I apply them.

  • 10.4.6 - PHP Websites No Longer Working

    After upgrading my G4 Mini from 10.4.5, I can no longer hit any PHP web pages. Any browser I use gives a warning that the PHP page is an application and wants to download the file rather than script it.
    I used software update and the machine did not restart twice, but I've rebooted it several times since, and also run permissions repair.
    Help, anyone?
    G4 Mini   Mac OS X (10.4.6)  

    Ivan,
    Welcome to Apple Discussions!
    You might want to see if the problem is with the webpage design of the page in question. Do you get the same results when visiting
    http://www.macmaps.com/astronomy.php
    If you do, it sounds like corruption in your web browser preferences. What browsers have you tried?
    http://www.macmaps.com/browser.html
    lists some other browsers if the one you used is not working right.
    Disclaimer: Reference to links I make to my Macmaps.com website are a for your information only type reference. I do not get any profit from this page, and it is open to the public.

  • InfoPath 2013 customized forms no longer working after linking Sharepoint 2010 list to MS Access 2013 database

    Hello,
    I am having trouble with my infopath form now that I have linked my Sharepoint list to an Access database.  
    Background:  I created a simple SharePoint list and a few workflows to have users submit requests for changes to my organization's EMR system and have those requests be approved by the appropriate manager/department.  I used
    InfoPath to customize my form so that it would hide/show different portions depending on what the user selected.  The form has 3 views: NewItem, EditItem, ViewItem. 
    Issue: The form and workflows were working great until I linked my SharePoint list to an access database so that I could run queries and reports using that information. Now when I click "Add New Item" on my Sharepoint site,
    the correct form opens but the fields do not allow me to input any data and some of the formatting for the form has changed (ie: the text boxe fields are no longer centered.  I opened the form in InfoPath and it displays perfectly fine in there but
    not once it's published to the site) . 
    The only way that I've been able to input new data is using Datasheet view in SharePoint.  
    Is there a way to fix this issue?  I really need to be able to have the customized forms for users to fill out the information since most users are not familiar enough with SharePoint to expect them to be able to use Datasheet view to submit their requests. 
    Again, I'm using InfoPath 2013, Access 2013 & SharePoint Server 2010
    If the issue cannot be fixed, how can I disconnect or unlink my SharePoint list from the Access database because when I cliecked on "delete list" from inside Access, a warning popped up stating that it will also delete the list off of SharePoint
    as well.  If I can get the list back to the state it was in before linking to Access then I'll be happy enough to export it excel and then importh the excel file to Access as a work around for reporting purposes since I don't have to run the reports that
    often. 
    Any insight would be very helpful!!

    Hi Bostic,
    I tested the same scenario per your post in my environment, however the InfoPath form was not affected if I used the list as external data in Access database.
    The issue may be due to the browser you used.
    I recommend to verify the things below:
    Change another browser to see how it works.
    Add the site to the trusted zone and add to compatibility settings in Internet Explorer.
    Test with a new list to narrow down the issue scope.
    As a workaround, you can save the list as a template including content, and then create a new list based on this template.
    Learn how to Save a SharePoint List Template:
    http://www.fpweb.net/sharepoint-2010/tutorials/content/save-list-template/#
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Switched email servers; same address, contact form no longer works

    I switched my web host's email from their internal email setup to a google business email of the same address.  The propagation took a little time, but now everything's working right.  Except my contact form on my website.  Now when I try to submit, I get "Server encountered an error" even though its the exact same email address as it was before, just through google's business email  service and not my web host's.  Whats going on and how to I fix this?  Is it an SMTP server issue under the hood?  I notice if I make another email account through my host and then direct the form to send email to that account, it works.  But switching it back to the google business email account I can't get it to work.

    Hi abstractls,
    You may be having the same problem as me. If the Airport Express is NOT connected to the internet, the Macs will still work, but the PC print routines say "you do not have sufficient access to your computer to connect to the selected printer" or just "An unknown error occurred during printing". If you reconnect the internet, the problem goes away.
    I suspect that the PC is not getting an IP address assigned to it by the Airport Express, and cannot cope without it, but the Mac is OK.
    My problem is that I do not want to connect the Airport Express to the net, I just want it to share a printer between Macs and PC. Does anyone know of a fix for that problem? I have told the Airport Express to ignore the lack of an internet connection, but that just switches off the amber light...

  • Master-Detail forms no longer work in Access

    Hi
    We have migrated an Access 2000 application into an Oracle 9i database successully. However, the application has a master-detail form that functioned correctly before migration. Since migration the child form does not appear, thus preventing the entering of a new child record.
    Before migration the detail form appeared as a totally blank form. Now the detail form simply doesn't appear. The detail form is based on a select statement which selects data from a stored query. I am suspicious that this is the cause as during tests I have tried manually creating a simple master-detail form and can see this working. I was able to get the test form to fail to produce a blank subform when the subform was based on a select statement however, attempts to change the real form to look at a table rather than a select statement don't solve the problem.
    We have looked on the Oracle forums, but the only error matching our requirements was posted in March 2001 with no real answer (Q: unable to launch subform after migration
    This seems a problem that would not be uncommon so surely we have omitted doing something obvious.
    Any help greatly appreciated.
    Regards
    Tim Broome

    Hello.  I believe I found the answer to the problems yesterday.  After trying everything I could from different forums and getting nowhere, I looked at the Adobe Properties by right clicking on the program.  Once in Properties, there is a compatability tab.  I run Windows 7 Pro 32bit.  Nevertheless, I selected the box that says "Run this program in compatability mode for" and then selected Windows 7.  It seems ridiculous to run the program in compatability mode for the OS I actually have on my system but it has done the trick.  All forms work now and my other PDF issues around the office have been resolved.  The only downside is that some PDF documents are printing slowly, but at least everything works. 
    ps: I first tried running compatabiilty mode for XP but it caused several credentialing issues with my systyem and our network, allowed forms to work, but only if they originated from my system (not the network) and did not allow other PDFs to open. 

  • xsl:if test="ddwrt:IfHasRights(16)" no longer working in a New form

    Hello all - 
    We have a list with some fields hidden for normal users, but approvers have edit access to these fields. The list has been working fine with the new,edit, and view forms all working as expected for over a year. BTW, this is on a Sharepoint Online site.
    Somehow, over this last weekend, although no changes were made to any of the forms, the New item form no longer works, but rather comes up with an "unable to display this web part" error. 
    So, in doing some troubleshooting, I created a new form for the list and confirmed that the new default form works fine. I then added in just the code for hiding a field and immediately the form came up with the "unable to display this web part"
    error. 
    Is this functionality no longer supported?
    btw, here's the code I tested in the new form:
    <xsl:if test="ddwrt:IfHasRights(16)"><tr>
    <td width="190px" valign="top" class="ms-formlabel"><H3 class="ms-standardheader"><nobr>Entry Status</nobr></H3></td>
    <td width="400px" valign="top" class="ms-formbody"><SharePoint:FormField runat="server" id="ff8{$Pos}" ControlMode="New" FieldName="Entry_x0020_Status" __designer:bind="{ddwrt:DataBind('i',concat('ff8',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Entry_x0020_Status')}" /><SharePoint:FieldDescription runat="server" id="ff8description{$Pos}" FieldName="Entry_x0020_Status" ControlMode="New" /></td>
    </tr>
    </xsl:if>
    Also, quick note that I double-checked to make sure that there was no other field on the form with ff8 already.
    TIA
    Michael

    Hi Michael,
    I have reproduced when I use this function for a field of a list from SharePoint online site, however it couldn't be reproduced from SharePoint on-premise.
    Not sure if SharePoint online update causing this, since we cannot check the ULS log according to the Correlation ID, I would recommend you post this issue in Office365 SharePoint Online forum via the following link, you can get a better assistance
    regarding SharePoint Online issue and there may be possible to involve the back-end support engineer to look into the issue.
    http://community.office365.com/en-us/f/154.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Need to add senders email address into the subject header of my PHP form (somehow)

    Hello one and all,
    I have a PHP form which is working fine and sends our support team an email with the subject header 'Support'.
    I have been asked to fix this form to include the senders email address into the Subject header so that the support team can filter them easier and reply quicker.
    Any help would be very much appreciated indeed. The form code is below, let me know if you need the whole page.
    Thanks in advance,
    Bradley
    My current form PHP part looks like this: (and the HTML part is below in blue)
    <?php
        if($_GET["action"] == "email")
            $msg = "The following person need support:\n\n";
            $msg = $msg . "First Name: " . $_POST["FirstName"] . " " . $_POST["LastName"] . "\n";
            $msg = $msg . "Tel: " . $_POST["Tel"] . "\n";
            $msg = $msg . "Email: " . $_POST["FROM"] . "\n";
            $msg = $msg . "Support: " . $_POST["Support"] . "\n";
            $msg = $msg . "Model: " . $_POST["Model"] . "\n";
            $msg = $msg . "Comments: " . $_POST["Comments"] . "\n";
            $to ="[email protected]";
            $subject = "Support";
            $from = "From: " . $_POST["FROM"];
            mail($to, $subject, $msg, $emailFrom, $from);
            header("Location:support2.php");
    ?>
    and the HTML part of the fom is like this:
    <form id="form1" name="form1" method="post" action="support.php?action=email">
      <table width="700" border="0" cellspacing="10" cellpadding="10">
        <tr>
          <td valign="middle" class="formtext">*First name:</td>
          <td width="455" valign="middle"><label>
            <input name="FirstName" type="text" class="form-textbox" id="FirstName" />
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Last name:</td>
          <td valign="middle"><input name="LastName" type="text" class="form-textbox" id="LastName" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Email:</td>
          <td valign="middle"><input name="FROM" type="text" class="form-textbox" id="FROM" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Telephone:</td>
          <td valign="middle"><input name="Tel" type="text" class="form-textbox" id="Tel" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext"> </td>
          <td valign="middle"> </td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Support required:</td>
          <td valign="middle"><label>
            <select name="Support" class="form-dropdown" id="Support">
              <option selected="selected">Please select...</option>
              <option value="Connection Issues">Connection Issues</option>
              <option value="Technical Issues">Technical Issues</option>
              <option value="Furniture Faults">Furniture Faults</option>
              <option value="Other">Other</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">Chair model:</td>
          <td valign="middle"><input name="Model" type="text" class="form-textbox" id="Model" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Please describe your issue:</td>
          <td valign="middle"><textarea name="Comments" rows="5" class="form-textarea" id="Comments"></textarea></td>
        </tr>
        <tr>
          <td valign="middle" class="maintext"> </td>
          <td valign="middle" class="maintext"></td>
        </tr>
        <tr>
          <td valign="middle"> </td>
          <td valign="middle"><label>
            <input name="Submit" type="submit" class="form-submit-button" value="Submit" />
          </label></td>
        </tr>
      </table>
      </form>

    MurraySummers you sir, are an absolute legend! This worked perfect straight off the bat!
    I really apreciate your lightning fast reply!
    Thanks again.
    Bradley

  • Third party contact form widgets no longer working with upgrade - PHP errors

    PHP seems to be even more screwed up with the latest update/upgrade to Muse.  The previous upgrade started producing the following error message when I uploaded my site via FTP:
    "1 Warning - Connection to PHP file failed. Unable to check if this web server supports PHP needed by Muse forms. Be sure the domain name entered in the FTP upload dialog is correct."
    However, everything worked and in participating in some queries here, it seemed to be an oddity versus anything serious (things still worked but an error message popped up for no real discernible reason)
    Since the latest update, however, widgets that I have from two different companies for the purpose of emailing me through the website, sending messages, etc, are no longer working and the following message is displayed upon hitting "submit"
    " Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration."
    In checking with my web host provider, I was told
    "the page appears to use the script form-u31652.php which does exist on the
    server.
    Unfortunately that error is not specific enough to point us in the right
    direction. PHP is indeed working on the server. However, looking at the
    apache web server error logs I can see that the contact form appears to be
    looking for a file that does not exist.
    To trouble shoot this issue you will want to work with Muse to determine
    why the sites coding is looking for the file
    /usr/home/NAME/public_html/WEBSITE.com/null."
    Any ideas what this means and how to solve this would be great. I've tried re-uploading the entire website, figuring that maybe something wasn't being uploaded via "Modified Only" but it still is happening
    Thanks!

    That isn't what ended up fixing it, Sanjit. Thanks to this article PHP FAQ for Muse Synchronized Text and help from an online representative from Adobe, was able to troubleshoot with my web provider. Turns out the problem was that a while back Muse deleted the fcgi-bin directory (probably during the previous upgrade, as that is when the PHP errors started to surface with me and others). And it was never put back by Muse even during a clean/full reupload of the website.  Had to have my web provider do it manually.

  • Forms HOST command no longer works after database upgrade from 10g to 11g

    Hi,
    After upgrading the database 10g to 11g the forms HOST command no longer works on Unix server. The form used to work fine prior the upgrade. I read all the threads I could find and did not see any solutions. Adding PATH and LD_LIBRARY_PATH does not work because it does not even run a basic shell script. (I saw this solution, adding PATH and LD_LIBRARY_PATH, in many questions / threads).
    1. I wouldn't expect the database upgrade to be an issue, but it is the only change we had.
    2. Note, 11g is Oracle Fusion Middleware which is quite a bit different than 10g.
    I even tried the most basic commands like "echo" which is a build-in Unix command and there is no directory for it (ie. no /usr/bin - so variable PATH is irrelvent). i.e HOST('echo hi'); and HOST('echo "hi" '); and even HOST ('echo hi > /my_file.txt'); all returns FORMS_FAILURE (actually the if is IF FORM_SUCCESS THEN ... else ... and the else part always runs now - whereas it didn't before.).
    Or basic commands like /usr/bin/ls as in HOST(/usr/bin/ls). At that point I was just testing the Unix command would return FORM_SUCCESS even though I could not see the results (because they weren't writing to a log file). Notice that I'm using the direct path /usr/bin so no Unix environment variables were needed.
    The form does use webutil but that part works. For example, we have webutil_file_transfer( ....) The file shows up on the application server and in the expected directory.
    Here's the main goal. Upload a file from clients local PC to the datebase server. The form uploads the file to the Application server, then we have a Unix script to scp (secure copy) the file from the application server to the database server. IF webutil, or any other Oracle functions could put the file on the database server that would be better. But, I don't know of any procedures that do that - or would have done it cleanly (i.e. storing to database and write back to server and then using a blob etc. )
    Anyway, I was hoping someone would help with either of these.
    1) Get the HOST command to work. - If we can get that to work then I wouldn't need any more help. We can just call the already existing Unix script to copy the file from the application server to the database.
    2) OR be able to upload directly to the database server - wanted to do that originally
    Any help would be appreciated

    Solution for those interested and for anyone else searching this forum for a solution
    I found this on My Oracle Support:
    <h3>Host Command from Forms Not Working in 11g in Sun Solaris Sparc OS [ID 1157346.1]</h3>
    Applies To: Oracle Forms - Version 11.1.1.1.0 and later
    Sun SPARC Sun OS
    Symptoms:
    When trying to execute a Shell script or any OS command using the host() Built-in from Forms 11g, the host()command is not getting executed. The same functionality works on other operating systems and in previous versions like 10gR2.
    Steps to be followed:
    1) Take a backup and edit the $DOMAIN_HOME/config/fmwconfig/servers/WLS_FORMS/applications/formsapp_11.1.1/config/default.env or any custom environment file.
    2) Locate the following environment variable:
    LD_PRELOAD=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    3) Comment out this variable. After the changes, it will look like the following:
    #LD_PRELOAD=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    3) a) Instead of LD_PRELOAD, kindly use LD_PRELOAD_64 as given below :
    LD_PRELOAD_64=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    (This makes HOST AND RUN_REPORT_OBJECT work fine).
    4) Save the file and execute your forms. The Host() built-in will work as expected
    The LD_PRELOAD setting in default.env is only required for the working of signal chaining facility in JVM version 1.5 and later. If you are not using theSignal chaining facility, this variable is not required. For more information, refer to the following documentation
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14772/forms.htm#CJAJGAFF

  • Firefox 7 is forcing me to fill out a form field that isn't required. I've used FF on this site for years but when I upgraded to FF7 it no longer works. IE it works fine.

    Firefox 7 is forcing me to fill out a form field that isn't required. I've used FF on this site for years but when I upgraded to FF7 it no longer works. IE it works fine.

    It's our internal applicant tracking systems (resume database). It works fine in IE and all previous verisons of FF but in FF 7 a bubble icon pops up stating that "Please fill out this field".
    The field is not required but states "Require all of these words" if you to run a search based on those parameters.

  • PHP scripts with a $_SERVER['HTTP_REFERER'] directive inside, no longer work in v16.

    I made a PHP script some time ago, before v16 came out and now that I have upgraded (good thing I did), notice that the $_SERVER['HTTP_REFERER'] directive no longer works. What my script does is, see if a user came in from a website (Facebook for example) and redirects them to the appropriate page. This is no longer the fact and I am not happy at all with this. How do I know FF 16 is at fault? Because, my script still works in IE7 and other web browsers. What have you done?????

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

Maybe you are looking for

  • Authorization: data level security by cost center to finance line items

    We have a business unit request requiring implementation of cost center data level security through FI transaction codes for financial line items.  Example requirement:  Cost center manager can execute FS10N GL account line item display, drill into t

  • How to Efficiently Sample a Fixed Number of Rows

    Good afternoon. I need to select a specific number of random rows from a table, and while I believe my logic is right it's taking too long, 30 minutes for a routine data size. Hopefully someone here can show me a more efficient query. I've seen the S

  • Passing Values Between to portal components

    Hi All,    Im having  2 portal components in my UI ,in the 1st component user has to select data from dropdownkey and inbox and i need to carry these values and display in 2nd portal component,also user has to select somemore details from the second

  • Who knows how to get applications from another country?

    Hey there, I have a complicated question! I am dutch, and trying to buy some apps in the app store in Holland. But...I'm living in French and I have an account witch allows me only to buy in the french app store and to connect me to the french itunes

  • Both http and https on struts in tomcat using SSL

    I want to apply both http and https as need, on a single web application on struts. My server is tomcat. I need a complete documentation. Some help me please.