Forms & Scripts!

I have just incorporated a basic "Contact Us" form into a website, I contacted my webhost to include a cgi/bin which has been inc. but unfortunately they DO NOT supply a script to make the form work. I downloaded a form from "MATS" which is FormMail.pl and I also have one which was used on a hong kong site! But I just cannot get them to work, I believe that I am not putting in the right required data! Could anyone help me with this? I use DW CS3 but I am very inexpierienced with scripts and code
Below is the Hong Kong script!
#!/usr/bin/perl
# generic forms processor
# version 0.8b
# Oct 9, 1996
# Copyright 1996 by Rod Clark ([email protected])
# v0.8b
# No longer requires user to enter an e-mail address, if not specified
#   with "Required"
# v0.8
# Added cc:
# On user echo page, show to whom e-mail sent.
# Made ECHO DATA HERE matching case-insensitive and less dependent
#   on exact comment syntax.
# Added explanatory note to mail message sent to user.
# Changed an option on sendmail command line from -oem to -oeq
# In responses and mail, separated subject more from user data.
#================================================================
# configuration
#================================================================
# You'll need to set the following variables.
if ($ENV{'REQUEST_METHOD'} eq "GET")
    $ErrorMessage = "Access is denied.";
    push (@Errors, $ErrorMessage);
    &PrintErrorPage;
    exit;
# syntax example for using forms on one server:
@GoodReferrers  = ('homepage.com.hk', (These in red are the old HK hosts)
     'nesta.com.hk',
     'abchk.net');
# syntax example for using forms on any of several servers:
# (omit "www" prefix if people can use your URLs without it)
# @GoodReferrers  = ('www.homepage.com.hk',  (These in red are the old HK hosts)
#                    'www2.some.org',
#                    'another.org');
# Default return prompt to display on the standard echo page:
# (Applies only if you don't specify a return link on the form
# with a hidden $ReturnLinkURL, and HTTP_REFERER is unavailable.)
$DefaultReturnLinkURL   = "http://www.empireantiques.com.au/";
$DefaultReturnLinkTitle = "Return to Home Page";
# Defaults for the mailto link on the echo page:
# (Applies only if your mailto address is not specified on the
# form with a hidden "to" or "MailtoAddress.")
# NOTE: Escape the @ in addresses here, by using \@
$DefaultMailtoPrompt    = "Questions:";
$DefaultMailtoAddress   = "[email protected]";
$DefaultMailtoName      = "[email protected]";
# These are for e-mailing the form results, not printing a
# mailto link on the echo page as with the previous addresses.
# NOTE: Escape the @ in addresses here, by using \@
$DefaultFrom            = "[email protected]";
$DefaultSubject         = "Web Form Data";
$UseDefaultTo           = 1;
# webmaster (or whatever address you choose) lets people reply
# to an address other than "nobody"
$DefaultTo              = "[email protected]";
# Default background color and image for standard echo page:
# Applies only if you don't define your own echo page with a
# hidden $EchoFilePath, and $RedirectURL is not used.
$DefaultBgcolor         = "#FFFFE4";
#$DefaultBackground      = "/images/ivory.gif";
#=====
# The following variables are less likely to need editing.
# But check them anyway.
$UserMailNote   = "For your records, this is what you entered on the form.";
# (If you see a "Form Error" message during installation,
# a bad path to $Mailprogram is the most likely cause.
# Check the actual location with "which sendmail".)
# -oeq avoids some difficulties if address is invalid
$MailProgram    = '/usr/sbin/sendmail -t -i ';
# prevents reading other than HTML files
$GoodFileExts   = "\.htm|\.html";
# if debug is on, redirection will not work.
$Debug = 0;
#================================================================
# end of configuration
#================================================================
&CheckReferrer;
&GetTime;
&ParseForm;
&CheckRequiredFields;
&SendMail;
if ($Debug)
  &PrintDebugPage;
else
  &PrintEchoPageOrRedirect;
#================================================================
# subroutines
#================================================================
sub CheckReferrer
  $Referrer = $ENV{'HTTP_REFERER'};
  # translate to lowercase
  $Referrer = "\L$Referrer\E";
  $ReferrerOK = 0;
  if ($Referrer)
    $NumGoodReferrers = @GoodReferrers;
    for ($RefIndex = 0; $RefIndex < $NumGoodReferrers; $RefIndex++)
      if ($Referrer =~ +$GoodReferrers[$RefIndex]+i)
        $ReferrerOK = 1;
  else
    $ReferrerOK = 1;
  if (!$ReferrerOK)
    $ErrorMessage = "The form at <b>$Referrer</b> is outside our domain. Access is denied.";
    push (@Errors, $ErrorMessage);
    &PrintErrorPage;
    exit;
sub GetTime
  @Days = ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday',
    'Saturday');
  @Months = ('January','February','March','April','May','June','July',
    'August','September','October','November','December');
  ($Sec, $Min, $Hour, $MonthDay, $Month, $Year, $WeekDay, $YearDay, $IsDST)
    = localtime (time);
  if ($Hour < 10)
    {$Hour = "0$Hour";}
  if ($Min < 10)
    {$Min = "0$Min";}
  $Time = "$Hour\:$Min on $Days[$WeekDay], $Months[$Month] $MonthDay";
sub ParseForm
  &ReadParse;
  $to                 = $in{'to'};              # "to" is always needed
  $cc                 = $in{'cc'};
  $bcc                 = $in{'bcc'};
  $email              = $in{'email'};           # equivalent to "from"
  $subject            = $in{'subject'};
  $ReturnLinkURL      = $in{'ReturnLinkURL'};
  $ReturnLinkTitle    = $in{'ReturnLinkTitle'};
  $RedirectURL        = $in{'RedirectURL'};
  $EchoFilePath       = $in{'EchoFilePath'};
  $MailtoPrompt       = $in{'MailtoPrompt'};
  $MailToAddress      = $in{'MailtoAddress'};
  $MailtoName         = $in{'MailtoName'};
  $Required           = $in{'Required'};
  # remove spaces
  $Required           =~ s/ +//g;
  @RequiredFields     = split (/,/, $Required);
  # disallow most special chars, and paths starting with .
  if (($EchoFilePath =~ /[^a-zA-Z0-9-\$_\.\/\~]/) || ($EchoFilePath =~ /^\./))
    $EchoFilePath = '';
  foreach $Part (@in)
    # convert hex values (e.g. %0A) to ASCII characters
    $Part =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
    ($Key, $Val) = split (/=/, $Part, 2);
    $Val =~ s/\n/<br>/g;
    if (($Key eq 'to')
    || ($Key eq 'cc')
    || ($Key eq 'bcc')
    || ($Key eq 'subject')
    || ($Key eq 'RedirectURL')
    || ($Key eq 'ReturnLinkURL')
    || ($Key eq 'ReturnLinkTitle')
    || ($Key eq 'Required')
    || ($Key eq 'EchoFilePath'))
      if ($Key eq 'EchoFilePath')
        push (@ScriptPairs, $Key."=".$EchoFilePath);
      else
        push (@ScriptPairs, $Key."=".$Val);
    else
      push (@UserPairs, $Key."=".$Val);
sub CheckRequiredFields
  if (!$to && !$MailtoAddress && !$UseDefaultTo)
    $ErrorMessage = "This form cannot be sent to its intended recipient.\nPlease send e-mail directly.";
    push (@Errors, $ErrorMessage);
    &PrintErrorPage;
    exit;
  else
if ($to){
  $tmR = "\L$to\E";
  $toOK = 0;
      if ($to=~ /^[\w-.]+\@[\w-.]+$/)
        $toOK = 1;
      else
        $MissingMessage = "Your e-mail address (<b>$to</b>) isn't in the usual form. Please make sure it's correct.";
        push (@MissingMessages, $MissingMessage);
  if ($tmR)
    $NumGoodReferrers = @GoodReferrers;
    for ($RefIndex = 0; $RefIndex < $NumGoodReferrers; $RefIndex++)
      if ($tmR =~ +$GoodReferrers[$RefIndex]+i)
        $toOK = 1;
    if (!$toOK){
                $MissingMessage = "Your send email address (<b>$to</b>) isn't in our scope.";
        push (@MissingMessages, $MissingMessage);
if ($bcc){
  $tmR = "\L$bcc\E";
  $bccOK = 0;
      if ($bcc=~ /^[\w-.]+\@[\w-.]+$/)
        $bccOK = 1;
      else
        $MissingMessage = "Your e-mail address (<b>$bcc</b>) isn't in the usual form. Please make sure it's correct.";
        push (@MissingMessages, $MissingMessage);
  if ($tmR)
    $NumGoodReferrers = @GoodReferrers;
    for ($RefIndex = 0; $RefIndex < $NumGoodReferrers; $RefIndex++)
      if ($tmR =~ +$GoodReferrers[$RefIndex]+i)
        $bccOK = 1;
    if (!$bccOK){
                $MissingMessage = "Your send email address (<b>$bcc</b>) isn't in our scope.";
        push (@MissingMessages, $MissingMessage);
if ($subject){
  $tmR = "\L$subject\E";
  $subOK = 0;
  $position = rindex($subject, "bcc") ;
  $positioncc = rindex($subject, "cc:") ;
  $positioncxc = rindex($subject, "cc :") ;
  $positionto = rindex($subject, "to:") ;
  $positiontoi = rindex($subject, "to :") ;
      if ($position<0 && $positioncc<0 && $positioncxc<0 && $positionto<0 && $positiontoi<0)
        $subOK = 1;
      else
        $MissingMessage = "Your subject(<b>$subject</b>) isn't in the usual form. Please make sure it's correct.";
        push (@MissingMessages, $MissingMessage);
    if ($email)
      if ($email =~ /^[\w-.]+\@[\w-.]+$/)
        $EmailOK = 1;
      else
        $MissingMessage = "Your e-mail address (<b>$email</b>) isn't in the usual form. Please make sure it's correct.";
        push (@MissingMessages, $MissingMessage);
    if ($Required)
      foreach $RequiredField (@RequiredFields)
        foreach $UserPair (@UserPairs)
          ($UserKey, $UserVal) = split (/=/, $UserPair, 2);
          if ($RequiredField eq $UserKey)
            if (!$UserVal)
              $MissingMessage = "The required <b>$RequiredField</b> field is missing. Please include it on the form.";
              push (@MissingMessages, $MissingMessage);
    $FieldsMissing = @MissingMessages;
    if ($FieldsMissing)
      &PrintRequiredFieldsPage;
      exit;
sub PrintEchoPageOrRedirect
  if ($RedirectURL)
    print "Location: $RedirectURL\n\n";
  &PrintEchoPage;
sub PrintEchoPage
  # check that the echo file is an HTML file
  # change filepath to lowercase
  $EchoFilePathLC = $EchoFilePath;
  $EchoFilePathLC = "\L$EchoFilePathLC\E";
  if ($EchoFilePathLC =~ /$GoodFileExts$/)
    &PrintUserEchoPage;
  else
    &PrintStandardEchoPage;
sub PrintUserEchoPage
  # Print $EchoFilePath file until encounter <!--ECHO DATA HERE-->
  # Then print the user pairs from the form.
  # Then print the rest of the file.
  # If ECHO DATA HERE is not found, then print the file
  # without inserting variables from the form.
  if (open (ECHOFILE, $EchoFilePath))
    &PrintHeader;
    $EchoFileLine = <ECHOFILE>;
    while ($EchoFileLine ne '')
      if (($EchoFileLine =~ /<!--/) && ($EchoFileLine =~ /ECHO DATA HERE/i))
        print "<p>\n";
        print "$MailerMessage\n";
        print "<p>\n";
        if ($subject)
          print "<b>Subject:</b> $subject\n";
        else
          print "<b>Subject:</b> $DefaultSubject\n";
        print "<p>\n";
        &PrintUserPairs;
      else
        print "$EchoFileLine";
      $EchoFileLine = <ECHOFILE>;
    close (ECHOFILE);
  else
    &PrintStandardEchoPage;
sub PrintStandardEchoPage
  &PrintHeader;
  print <<ENDPRINT;
<html>
<head>
<title>Thank You</title>
</head>
<body bgcolor="$DefaultBgcolor" background="$DefaultBackground">
ENDPRINT
  print <<ENDPRINT;
<h2>Thank You</h2>
This is what you entered on the form.<br>
$MailerMessage
<p>
ENDPRINT
  if ($subject)
    print "<b>Subject:</b> $subject\n";
  else
    print "<b>Subject:</b> $DefaultSubject\n";
  print "<hr>\n";
  print "<blockquote>\n";
  &PrintUserPairs;
  print "</blockquote>\n";
  print "<hr>\n";
  &PrintMailto;
  print "<p>\n";
  &PrintReturnLink;
  &PrintPageFooter;
sub PrintRequiredFieldsPage
  &PrintHeader;
  print <<ENDPRINT;
<html>
<head>
<title>Please Fill Out Required Fields</title>
</head>
<body bgcolor="$DefaultBgcolor" background="$DefaultBackground">
ENDPRINT
  print <<ENDPRINT;
<h2>Please Fill Out Required Fields</h2>
<hr>
<ul>
ENDPRINT
  foreach $MessageLine (@MissingMessages)
    print "<p>\n";
    print "<li>$MessageLine\n\n";
  print "</ul>\n";
  print "</center>\n";
  print "<hr>\n";
  &PrintMailto;
  print "<p>\n";
  &PrintReturnLink;
  &PrintPageFooter;
sub PrintErrorPage
  &PrintHeader;
  print <<ENDPRINT;
<title>Form Error</title>
</head>
<body bgcolor="$DefaultBgcolor" background="$DefaultBackground">
<h2>Form Error</h2>
<hr>
<ul>
ENDPRINT
  foreach $ErrorLine (@Errors)
    print "<p>\n";
    print "<li>$ErrorLine\n\n";
  print <<ENDPRINT;
</ul>
</center>
<hr>
ENDPRINT
  &PrintMailto;
  &PrintReturnLink;
  &PrintPageFooter;
sub PrintDebugPage
  &PrintHeader;
  print <<ENDPRINT;
<html>
<head>
<title>Debug Page</title>
</head>
<body bgcolor="$DefaultBgcolor" background="$DefaultBackground">
ENDPRINT
  # script fields
  print "<i>Script fields:</i><br>\n";
  foreach $ScriptPair (@ScriptPairs)
    ($ScriptKey, $ScriptVal) = split (/=/, $ScriptPair, 2);
    print "<b>$ScriptKey:</b> $ScriptVal<br>\n";
  # user fields
  print "<hr>";
  print "<i>User fields:</i><br>\n";
  foreach $UserPair (@UserPairs)
    ($UserKey, $UserVal) = split (/=/, $UserPair, 2);
    print "<b>$UserKey:</b> $UserVal<br>\n";
  # required fields
  # missing field messages
  print "<hr>";
  print "<i>Required fields:</i><br>\n";
  foreach $RequiredField (@RequiredFields)
    foreach $UserPair (@UserPairs)
      ($UserKey, $UserVal) = split (/=/, $UserPair, 2);
      if ($RequiredField eq $UserKey)
        print "<b>$UserKey:</b> $UserVal<br>\n";
  print "<p><i>Missing field messages:</i><br>\n";
  foreach $MissingMessage (@MissingMessages)
    print "<p>\n";
    print "$MissingMessage\n";
  # errors
  print "<hr>";
  print "<i>Errors:</i><br>\n";
  foreach $ErrorLine (@Errors)
    print "$ErrorLine\n\n";
sub PrintUserPairs
  foreach $UserPair (@UserPairs)
    ($UserKey, $UserVal) = split (/=/, $UserPair, 2);
    print "<b>$UserKey:</b> $UserVal<br>\n";
sub PrintMailto
  if ($MailtoPrompt)
    $PrintPrompt = $MailtoPrompt;
  else
    $PrintPrompt = $DefaultMailtoPrompt;
  if ($to)
    print "$PrintPrompt <a href=\"mailto:$to\">$to</a>\n";
  elsif ($MailtoAddress)
    if ($MailtoName)
      print "$PrintPrompt <a href=\"mailto:$MailtoAddress\">$MailtoName</a>\n";
    else
      print "$PrintPrompt <a href=\"mailto:$MailtoAddress\">$MailtoAddress</a>\n";
  else
    if ($DefaultMailtoAddress)
      if ($DefaultMailtoName)
        print "$DefaultMailtoPrompt <a href=\"mailto:$DefaultMailtoAddress\">$DefaultMailtoName</a>\n";
      else
        print "$DefaultMailtoPrompt <a href=\"mailto:$DefaultMailtoAddress\">$DefaultMailtoAddress</a>\n";
sub PrintReturnLink
  # If the user's return link name is defined, print a link to it.
  # If not, but the referring page is known, print a link to it.
  # If not, then print a link to the default home page, if it's defined.
  if ($ReturnLinkURL)
    if ($ReturnLinkTitle)
      print "<p>\n<b><a href=\"$ReturnLinkURL\">$ReturnLinkTitle</a></b>\n";
    else
      print "<p>\n<b>Return to <a href=\"$ReturnLinkURL\">$ReturnLinkURL</a></b>\n";
  else
    if ($Referrer)
      print "<p>\n<b><a href=\"$Referrer\">Return to the Form</a></b><br>\n";
    else
      if (($DefaultReturnURL) && ($DefaultReturnTitle))
        print "<p>\n<b><a href=\"$ReturnLinkURL\">$ReturnLinkTitle</a></b>\n";
sub PrintPageFooter
  print <<ENDPRINT;
</body>
</html>
ENDPRINT
sub SendMail
  $CanSendMail = 0;
  if (open (MAIL,"|-") || exec "$MailProgram")
    if ($to)
      $MailedTo = $to;
      $CanSendMail = 1;
    else
      if ($UseDefaultTo)
        $MailedTo = $DefaultTo;
        $CanSendMail = 1;
    if ($email)
      $MailedFrom = $email;
    else
      $MailedFrom = $DefaultFrom;
    if ($subject)
      $MailedSubject = $subject;
    else
      $MailedSubject = $DefaultSubject;
    if ($CanSendMail)
      print MAIL "To: $MailedTo\n";
      if ($cc)
        print MAIL "Cc: $cc\n";
      print MAIL "From: $MailedFrom\n";
      print MAIL "Subject: $MailedSubject\n\n";
      &MailSystemData;
      print MAIL "Subject: $MailedSubject\n";
      print MAIL "\n";
      &MailUserPairs;
      close (MAIL);
      $MailerMessage = "Mailed at $Time to <b>$MailedTo</b>\n";
      if ($cc)
        $MailerMessage = $MailerMessage."<br>cc: to <b>$cc</b>\n";
      if ($EmailOK)
        # &MailCopyToFormFiller;
    else
      close (MAIL);
      $ErrorMessage = "Form data cannot be sent: no recipient.\n";
      &PrintErrorPage;
      exit;
  else
    $ErrorMessage = "Could not open mail program.\n";
    &PrintErrorPage;
    exit;
sub MailCopyToFormFiller
  # send a copy to whoever filled out the form
  if ($email)
    if (open (MAIL,"|-") || exec "$MailProgram")
      print MAIL "To: $email\n";
      print MAIL "From: $MailedTo\n";
      print MAIL "Subject: $MailedSubject\n\n";
      &MailSystemData;
      print MAIL "$UserMailNote\n\n";
      print MAIL "Subject: $MailedSubject\n";
      print MAIL "\n";
      &MailUserPairs;
      close (MAIL);
      $MailerMessage = $MailerMessage."<br>Duplicate mailed to <b>$email</b>";
sub MailSystemData
  print MAIL "Data entered from: $Referrer\n";
  print MAIL "\n";
sub MailUserPairs
  foreach $UserPair (@UserPairs)
    ($UserKey, $UserVal) = split (/=/, $UserPair, 2);
    $UserVal =~ s/<br>/\n/g;
    print MAIL "$UserKey: $UserVal\n";
#=====================================================================
# GENERAL PURPOSE (BOILERPLATE) ROUTINES
#=====================================================================
# from cgi-lib.pl v1.14
# (these routines copyright by Steven Brenner)
sub ReadParse
  local (*in) = @_ if @_;
  local ($i, $key, $val);
  # Read in text
  if (&MethGet)
    $in = $ENV{'QUERY_STRING'};
  elsif (&MethPost)
    read(STDIN,$in,$ENV{'CONTENT_LENGTH'});
  @in = split(/[&;]/,$in);
  foreach $i (0 .. $#in)
    # Convert plusses to spaces
    $in[$i] =~ s/\+/ /g;
    # Split into key and value
    # splits on the first =
    ($key, $val) = split(/=/,$in[$i],2);
    # Convert %XX from hex numbers to alphanumeric
    $key =~ s/%(..)/pack("c",hex($1))/ge;
    $val =~ s/%(..)/pack("c",hex($1))/ge;
    # Associate key and value
    # \0 is the multiple separator
    $in{$key} .= "\0" if (defined($in{$key}));
    $in{$key} .= $val;
  return scalar(@in);
sub MethGet
# true if this cgi call was using the GET request, false otherwise
  return ($ENV{'REQUEST_METHOD'} eq "GET");
sub MethPost
# true if this cgi call was using the POST request, false otherwise
  return ($ENV{'REQUEST_METHOD'} eq "POST");
sub PrintHeader
  print "Content-type: text/html\n\n";
  return;

Refer table TTXFP.
Form name : TTXFP-TDFORM
Driver program : TTXFP-PRINT_NAME
Ref Thread: Driver Programs
check in SE76 ,
goto SE76 , Click F4 and then F8 , u canget all the forms
or
u can find them in table STXH , TDFORM is the fieldname
Another way of checking is
In SE71 and follow the menu
FORM->CHECK->Text
There u will get the print program name .
Regards

Similar Messages

  • FPM Form Scripting - How to call a web dynpro application as pop up

    Hi All,
    I want to call a web dynpro application as a pop up from FPM form scripting.
    Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
    Thanks In Advance.

    Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
    Hope this helps.
    Regards,
    Sahir.

  • Help with web form script. PHP, CGI, Perl???

    anyone willing to help with a web form script? I have a form built, but cant seem to figure out the scripting! Should I be using Perl, CGI, PHP... What do I need to enable? I am a complete novice when it comes to scripts. Looking for a little friendly help.

    Here is a simple bit of PHP to stick in the page your form posts to. You would need to edit the first three variables to your liking, and add the html you want to serve afterwards:
    <pre>
    <?php
    $emailFrom = '[email protected]';
    $emailTo = '[email protected]';
    $emailSubject = 'Subject';
    $date = date('l, \t\h\e dS \o\f F, Y \a\t g:i A');
    $browser = $HTTPSERVER_VARS['HTTP_USERAGENT'];
    $hostname = $HTTPSERVER_VARS['REMOTEADDR'];
    $message = "$date\n\nAddress: $hostname\nBrowser: $browser\n\n";
    foreach ($_POST as $key => $value) {
    $message .= $key . ": " . $value . "\n";
    $mailResult = mail($emailTo,$emailSubject,$message,"From: $emailFrom");
    ?>
    </pre>
    This script will grab the server's date and the submitter's address and browser type. It will then list the name and value of each form field you have put on your form.
    Also, this script expects your form method="post".
    Lastly, you can offer alternate text later on in your html page based on the success of the above script with a snippet like this:
    <pre><?php
    if ($mailResult) {
    echo "Your comments have been received thank you.";
    } else {
    echo "There was an error. Please try again or contact us using an alternate method.";
    ?></pre>

  • Outlook 2010 cannot provide form scripting support

    I have followed two workarounds and fixes for Office 2010 in  a terminal services environment.  One was to copy a .dll file to the terminal server and the other was to remove a registry entry.  Both workarounds fixed the problem temporarily,
    but it continues to show up.  When a user opens some email messages they receive a warning that "Microsoft Outlook cannot provide form scripting support. This feature is not available.  For more information, contact your system administrator."A+, MCP, MCSA, MCSE, Security+

    Here is what I did to enable VB scripting for Outlook 2010.
    1.     
    Determine the GUID for Office 2010.
    In the Registry, go to
    HKEY_CLASSES_ROOT\Installer\Features. Search for
    “OutlookVBScript”. I found it at:
    HKEY_CLASSES_ROOT\Installer\Features\00004109110000000000000000F01FEC.
    In the Registry, for an x86 server go to
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products,
    or for an x64 server, go to
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstalledPackages (the first one)
    and select the key where you located “OutlookVBScript”.
    On my server, it is:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\00004109110000000000000000F01FEC
    When I select it, this is what I see:
    DisplayName “Microsoft Office Professional Plus 2010”
    InstallSource, ModifyPath and UninstallSring all show the Office 2010 GUID as
    {90140000-0011-0000-0000-0000000FF1CE}
    2.     
    Install VBScripting for Outlook.
    My commands to install VBscripting for Outlook are therefore:
    change user /install
    msiexec /i {90140000-0011-0000-0000-0000000FF1CE} ADDLOCAL=OutlookVBScript /qb
    change user /execute
    Note: After installing VBscripting for Outlook, “OutlookVBScript”at
    HKEY_CLASSES_ROOT\Installer\Features\00004109110000000000000000F01FEC changed its value from “OUTLOOKFiles”
    (where the box glyph at the beginning appears to be a minus or dash in the Registry editor) to “OUTLOOKFiles”.

  • Need help adapting David Powers PHP email form script please!

    Hi all,
    I'm fairly inexperienced with PHP and I'm trying to adapt the David Powers email form script from THE ESSENTIAL GUIDE TO DREAMWEAVER CS4 WITH CSS, AJAX, AND PHP.
    I've created a basic form so that visitors to the site can request a telephone call back from the site owner. The form asks the visitor for their name, telephone number and to select a time of day suitable for the telephone call to be made using radio buttons selecting between morning and afternoon.
    I'd like to achieve my goal with minimal validation error messages and would like to redirect to another page when a message is sent successfully. It is also important that in the spirit of the David Powers script I'm trying to work with, that it filters out suspect input, avoids email header injection attacks and blocks submission by spam bots.
    There may be a really simple solution to this since I don't want users to be able to enter an email address at all but I don't know enough to be able to figure it out just yet.
    I'd be grateful for any advice.
    See below for the code for the form including PHP so far...
    Thanks to everyone looking in in advance
    Karl.

    GEAtkins wrote:
    > I am using the redirect to a personal page from page 515
    of The Essential
    > Guide to DWCS3 in the following form:
    $_SESSION[MM_Username].php in the "if
    > login succeeds" field.
    Thank you for reminding me. There's a mistake in the book,
    which I
    discovered over the Christmas period, so forgot to send to
    friends of ED
    for the errata page.
    Don't use $_SESSION[MM_Username]. Use $loginUsername instead.
    It then works.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Feedback form script in RH8

    My form (see below) triggers a PHP script (see below) which is supposed to send the form data to my email address. It works perfectly in a regular web page, but when I've integrated into my WebHelp project the form fails to send anything and show a series of PHP errors (see below). I'm no PHP expert so I'd be grateful if anyone could advise me or suggest an alternative method of producing a Feedback Form in a WebHelp page.
    FORM:
    <form action="sendmail.php" method="post" name="Feedback" id="Feedback">
      <p><strong style="font-weight: bold;">Name</strong>:<br />
        <input name="name" type="text" id="Name" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Email</strong>:<br />
        <input name="email" type="text" id="Email" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Phone</strong>:<br />
        <input name="phone" type="text" id="Phone" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Firm</strong>:<br />
        <input name="firm" type="text" id="Firm" class="fields" size="30" />
      </p>
      <p><strong style="font-weight: bold;">Comments</strong>:<br />
        <textarea name="message" cols="60" rows="5"></textarea>
      </p>
      <p>
        <input name="Clear" type="reset" class="button" value="Clear" />
        <input
      name="Send" type="submit" class="button" id="Send" value="Send" />
      </p>
    </form>
    SCRIPT:
    <?
    $name = $_REQUEST['name'] ;
    $email = $_REQUEST['email'] ;
    $phone = $_REQUEST['phone'] ;
    $firm = $_REQUEST['firm'] ;
    $message = $_REQUEST['message'] ;
    $http_referrer = getenv( "HTTP_REFERER" );
    $messagelayout =
    "This message was sent from:\n" .
    "$http_referrer\n" .
    "\n" .
    "\n" .
    "SENDER------------------------------------------------------\n\n" .
    "Name: $name\n" .
    "Email: $email\n" .
    "Phone: $phone\n" .
    "Firm: $firm\n" .
    "\n" .
    "MESSAGE-----------------------------------------------------\n\n" .
    $message .
    "\n\n------------------------------------------------------------\n" ;
    if (!isset($_REQUEST['email'])) {
    header( "Location: feedback.htm" ) ;
    elseif (empty($name) || empty($email) || empty($phone) || empty($firm) ||empty($message)) {
    header ( "Location: error.htm" ) ;
    else {
    mail( [email protected], "Documentation Feedback", $messagelayout, "From: $name <$email>" ) ;
    header( "Location: thanks.htm" ) ;
    ?>
    ERRORS:
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 2
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 3
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 4
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 5
    Warning: Undefined variable: _REQUEST in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 6
    Warning: Cannot add header information - headers already sent by (output started at C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php:2) in C:\Inetpub\wwwroot\Documentation (ILE)\WebHelp\Working\sendmail.php on line 26

    Hi Guys, just got round to looking at this again.
    The form now sends the email, but my "thank you" page isn't displayed. Also, if the required fields are not completed, my "error" page isn't displayed either.
    I'm testing this form after it's been published to our web server, which is on the same server as our intranet and the forms on the intranet work fine using the same script. I'm convinced that RoboHelp is doing something weird with the script.
    Any further help would be much appreciated.
    Thanks
    Jonathan

  • Error in OLT while loadtesting EBS form scripts

    I am executing load tests through OLT. 3 of my scripts fail when executed with more than 1 user.
    It says "component can not be found" ..
    whereas it can execute the same script in OpenScript and through OLT with 1 user with 5-10 iterations.
    EBS forms script I recorded first time gave me similar error in OpenScript. After clicking button, it will load new form and fail on first text box which gets recorded.
    The way script is recorded is odd too. It does not activate the form window but has focused text box right away. I re-recorded the script and it started working fine..
    But I get same error in OLT tool now. I can attach the script and logs if you need.
    PLease advice, its urgent.
    Thanks for your attention.
    Edited by: user736845 on Nov 21, 2011 10:33 AM

    I am executing load tests through OLT. 3 of my scripts fail when executed with more than 1 user.
    It says "component can not be found" ..
    whereas it can execute the same script in OpenScript and through OLT with 1 user with 5-10 iterations.
    EBS forms script I recorded first time gave me similar error in OpenScript. After clicking button, it will load new form and fail on first text box which gets recorded.
    The way script is recorded is odd too. It does not activate the form window but has focused text box right away. I re-recorded the script and it started working fine..
    But I get same error in OLT tool now. I can attach the script and logs if you need.
    PLease advice, its urgent.
    Thanks for your attention.
    Edited by: user736845 on Nov 21, 2011 10:33 AM

  • Urgent : Regarding Adobe Forms ,Scripts and Smartforms

    <i>
    Hi Floks
    Any body having Adobe Printing Forms ,Scripts and Smartforms documents Links can you send me to me . Its will be help full to me
    thanks
    suresh</i>

    Hi Suresh,
    SCRIPTS
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://www.thespot4sap.com/articles/SAPscript_Introduction.asp
    http://www.onestopsap.com/sap-miscellanous/sap-script/
    http://sap.niraj.tripod.com/id19.html
    http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
    http://www.thespot4sap.com/Articles/SAPscript_commands.asp
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

  • WHAT ARE THE FORMS (SCRIPTS) WHICH ARE NOT PROVIDED BY STANDARD SAP?

    WHAT ARE THE FORMS (SCRIPTS) WHICH ARE NOT PROVIDED BY STANDARD SAP?

    Hi Pravin
    For a beginner in CRM - Sales would be a right choice to understand how CRM behaves when integrated with backend R/3.
    Still as far as CRM goes, most of the components are not exposed to their fullest potential and that is why its not outshining the competitors in market.

  • How to make a contact form script

    i need help in how to make a contact form script, and how to
    insert it into dreamweaver ugent

    Does your host support PHP? If so -
    http://sourtea.com/articles.php?ref=30
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    COMING SOON - Infooki [unboxed]:
    http://infooki.sourtea.com/
    Web Dev Articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "alagie82" <[email protected]> wrote in
    message
    news:em6gmt$q2n$[email protected]..
    >i need help in how to make a contact form script, and how
    to insert it into
    >dreamweaver ugent

  • Hiding Image field based on the page number in Adobe Form- Script

    Hi Folks,
    I have a problem with the print form that I am working on. I need to insert an image of lines (OMR) based on the page numbers. For the OMR part, the first page will always have 4 lines as a image, the middle pages will have 3 lines as a image and the last page will have two lines as a image.
    I have uploaded these 3 images a BMPs in SE78 and I am using Xstring of these images in the form. I have two master pages. First master page is for the first page and the second master page is for the remaining pages. The first master page will always have the 4 line image. I created a positioned subform in the master page2, in that subform, I have 2 hidden numeric fields, as the run time properties one for the current page number, other one for the total number of pages. I placed those two images(one for the three line image and the other one for the two line image) exactly on the same location positioned dimensions wise. 
    I have written the java script for these two image fields to show based on the page numbering. But, somehow, it is not working. Can anybody please let me know where I am doing wrong. I am posting my java script here.
    for the three line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    //if(data.#pageSet[0].MasterPage2.OMR.cpage.rawvalue == data.#pageSet[0].MasterPage2.OMR.npages.rawvalue){
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "visible";
    For the two line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "visible";
    Please give me a direction as this is kind of hurry.
    Thanks,
    Srinivas.
    Edited by: srinivas kari on Jun 9, 2010 2:03 AM

    HI Otto,
    Thanks for the response. You are right, I am struck with this image. My problem was to keep the OMR marking on each page based on the page number. It is like a lines with 10mmX10mm dimension at the top right corner for the sorter machine to know the number of pages to put in the envelope. The logic for this is, on the first page, it has 4 lines each 3mm apart. On the middle pages it has 3 lines . On the last page it has 2 lines. When the sorter machine picks these, it looks at the first page with 4 lines, it will count as a first page, it will continue through the 3 line pages as the middle pages until it reaches the 2 line to know it as the last page. This is all happens in the master pages. I have two master pages , one for the first page and the second one for the remaining pages.
    At first I did not know how to To achieve this, I created 3 images. one with 4 lines, another ones with 3 lines and 2 lines. The 4 lines image was on the first master page. The 3 lines and 2 lines images were on the second master page at the same place as the image fields positioned. Thats where I was trying this scripting. I was trying to capture the current page and number of pages. Based on these, I was trying to place them.
    Is there any other way to achieve this instead of using the images? I thought of sy-uline. but some in the forum told that its not going to work. Even if I use the sy-uline, I have to do some script to achieve this I believe.
    Any inputs on this.. Please give the direction.
    Thanks,
    Srinivas.

  • Hiding Image filed based on the page number in Adobe Forms - scripting

    Hi Folks,
    I have a problem with the print form that I am working on. I need to insert an image of lines (OMR) based on the page numbers. For the OMR part, the first page will always have 4 lines as a image, the middle pages will have 3 lines as a image and the last page will have two lines as a image.
    I have uploaded these 3 images a BMPs in SE78 and I am using Xstring of these images in the form. I have two master pages. The first master page will always have the 4 line image. I created a positioned subform in the master page2, in that subform, I have 2 hidden numeric fields, as the run time properties one for the current page number, other one for the total number of pages. I placed those two images(one for the three line image and the other one for the two line image) exactly on the same location positioned dimensions wise.
    I have written the java script for these two image fields to show based on the page numbering. But, somehow, it is not working. Can anybody please let me know where I am doing wrong. I am posting my java script here.
    for the three line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    //if(data.#pageSet[0].MasterPage2.OMR.cpage.rawvalue == data.#pageSet[0].MasterPage2.OMR.npages.rawvalue){
    for (j=0; j<xfa.layout.pageCount(); j++){
    if(cp == np){
    xfa.resolveNode("data.PageSet.MasterPage2 [" + j + "]").OMR.OMR2.presence = "hidden";
    else{
    xfa.resolveNode("data.pageSet.MasterPage2 [" + j + "]").OMR.OMR2.presence = "visible";
    For the two line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    for (j=0; j<xfa.layout.pageCount(); j++){
    if(cp == np){
    xfa.resolveNode("data.PageSet.MasterPage2 [" + j + "]").OMR.OMR3.presence = "hidden"; // there is some problem while //posting it is like MasterPage2[" + j + "]")
    else{
    xfa.resolveNode("data.pageSet.MasterPage2 [" + j + "]").OMR.OMR3.presence = "visible";
    Please give me a direction as this is kind of hurry.
    Thanks,
    Srinivas.
    Edited by: srinivas kari on Jun 9, 2010 12:04 AM

    HI Otto,
    Thanks for the response. You are right, I am struck with this image. My problem was to keep the OMR marking on each page based on the page number. It is like a lines with 10mmX10mm dimension at the top right corner for the sorter machine to know the number of pages to put in the envelope. The logic for this is, on the first page, it has 4 lines each 3mm apart. On the middle pages it has 3 lines . On the last page it has 2 lines. When the sorter machine picks these, it looks at the first page with 4 lines, it will count as a first page, it will continue through the 3 line pages as the middle pages until it reaches the 2 line to know it as the last page. This is all happens in the master pages. I have two master pages , one for the first page and the second one for the remaining pages.
    At first I did not know how to To achieve this, I created 3 images. one with 4 lines, another ones with 3 lines and 2 lines. The 4 lines image was on the first master page. The 3 lines and 2 lines images were on the second master page at the same place as the image fields positioned. Thats where I was trying this scripting. I was trying to capture the current page and number of pages. Based on these, I was trying to place them.
    Is there any other way to achieve this instead of using the images? I thought of sy-uline. but some in the forum told that its not going to work. Even if I use the sy-uline, I have to do some script to achieve this I believe.
    Any inputs on this.. Please give the direction.
    Thanks,
    Srinivas.

  • Multiple line item display for PAYMENT ADVISE form(script) using F110 tcode

    Dear All,
    I am currently working on PAYMENT ADVISE script ( form ) - for which i have copied the
    form F110_IN_AVIS to zform.
    I am executing the form for output through executing Tcode - F110.
    The output works for single line item entry of vendor line items - but doesnot support
    for muliple line items.
    I have checked the standard program - RFFOUS_C - which has include - RFFORI06 for remittance advice -which supports for single line item display.
    Kindly advise me for the soultion of the same.
    Regards
    HC

    Hi,
    Do you manage to fix it ?
    we experienced the same problems (mass printing smarforms F110), we would like to use one time F110, and generates all the spool, for all the line items.
    Thanks
    Any help would be grateful.
    Thomas

  • Issue in adobe forms scripting.

    Hi Guys,
    I'm trying to create here an Interactive form embedded into a Wed Dynpro Java application. On the Interactive form i simply have a Text Field and two buttons.
    On the click of one button, the Text Field should get Invisible, and on the click of the second button the Text Field should be visible again. When in the NWDS, in the Livecycle Designer i try to look from the Preview PDF tab, the functionality works perfectly fine and i get no issues whatsoever. But when i deploy and open the same application in Internet Explorer this functionality does not work. I have tried testing this using IE 7 and also IE 8, along with different versions of adobe reader(8 and 9) but nothing seems to work.
    For Button1 to make Text Field invisible i have doen the scripting as below:
    Subform.TextField.presence = "hidden";
    and, for the Button2 to make the Text Field visible again i have done the scripting as:
    Subform.TextField.presence = "visible";
    If somebody has any idea, kindly help me find where I'm going wrong.
    Thanks,
    Abhishek Goel.

    Hi ,
    Set the property of the interactive form dynamically.
    wright the below code in wdDoModifyView()
                   if(firstTime){
         IWDInteractiveForm Form = (IWDInteractiveForm)view.getElement("ID of Interactive Form Ui Element");
         Form.setDynamicPDF(true);
    Also use the complete path for the visibility setting like if your Text field is under BodyPage->Subform->TextField
    Then use
    BodyPage.Subform.TextField.presence = "hidden";
    Regards
    Ravindra

  • Adobe form script changes not reflected when PDF created by ADS.

    Hello Experts,
    We have done some modifications (UI elements java script) in PDF form in the Development system and tested... everything fine and as expected everything working.
    When we move the same changes to Quality system, the expected functionality is not working. For error analysis we followed below things.
    --1. I have checked the PDF form in SFP TCode is newly added script code is available or not.... Is available in Quality system.
    --2. I have run the application In SAP Portal, where we show this adobe form and saved locally generated PDF form by application. Then we imported  same saved PDF form into ALD  and checked... is newly written java script is available or not....strange is not available...... but in ECC under  SFP TCode i am able to see the newly written script code.
    --3. o.k. we feel that some issue with ADS server so avoid that we restarted the server even though same.... the newly written script PDF form is not picked  by ADS server while generating the PDF in the portal application.
    Can some one throw some torch on this issue?
    Regards
    Malli
    Edited by: mallikarjuna pasupulati on Apr 7, 2011 9:03 AM

    Steve,
    Might M. Kazlow's announcement be relevant?
    Announcement: Mac OS X.7 Lion Compatibility and Acrobat X
    Mac OS X.7 is not fully compatible with Acrobat X.
    Please see http://kb2.adobe.com/cps/905/cpsid_90508.html for more details.
    by MichaelKazlow at Jul 20, 2011 1:17 PM
    Be well...

  • How can we add a checkbox in form (Scripts)

    Hello Experts,
             i want to add a checkbox in the form. how can v add a check box in the form. i tried with sap scripts symbols like sym_checkbox but it's not working.
    and i can print a small box by using Box statement. but i need exactly a check box. how can v create it in scripts.
    thanks in advance.

    Hi,
    Please refer the links,
    Check Box With Tick Mark on Sap Script
    putting tick mark into check box in smartform
    Regards,
    Hema.
    Reward points if it is useful.

Maybe you are looking for

  • Exporting to excel sheet

    Hi, I have problem exporting data to excel sheet In the java servlet. I am getting a date field as 03/15/2004 in servlet but after exporting to excel sheet it displayed as 3/15/2004 in excel. Is there a way I can show the way its comming in java serv

  • Release Strategy for PR--------Help is required urgently.

    Hello all, I have one severe problem in PR release strategy. Whenever we create a PR the Release is triggering but the name of the processer who will release this PR is not triggering. I have done the PO13, where the HR positions are maintained as pe

  • 2.0.5 to 3.x

    Hello, I'm on iCal 2.0.5 but would like to get up to 3.x and can't find an update. How to do this? TIA cherkey

  • User Groups and non Developers users

    Hi, two questions. 1) How do I create users groups. I want to divide specific users to specific groups. 2) I created users not as developer and not as a administrator. When I logged on with that users I didnt see any of the applications, why? Thanx.

  • If I replace a logic board on a slow iPhone, will it make it faster?

    My iphone 5 is slow and I have restored it to factory setting, and it's still running very slow! What in the device itself can be replaced that would make it run like a new Iphone 5.