Php redirect based on value not working?

Hello, i have a signup page, a login page, failed.php and a landing page once they have signed up.
the user signs up (application-formP1.php) then once they have done this they are redirected to the next page (application-formP2.php) they then have other information to add.
on application-formP1.php there is a redirect that if the user has finished with the page (completed it) they are directed to application-formP2.php
if($status == "P1complete")
          header("location: application-formP2.php");
the trouble i am having is if i just try to access application-formP1.php ( which is the signup page) it is automatically sending the user to application-formP2.php even if they are not signed in then because they are not signed in it is sending the user to the failed page (obiously because the retstrict user is working)
i have included the code below for application-formP1.php
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO LettingsTenApp (tenID, progress, tenTitle, tenUsername, tenPassword, tenSex, tenEmail, tenDobDD, tenDobMM, tenDobYY, tenDepend, tenMarital, tenPrevSurn, tenEmployTyp, tenNINumber) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['tenID'], "int"),
                                                     GetSQLValueString($_POST['progress'], "text"),
                       GetSQLValueString($_POST['tenTitle'], "text"),
                       GetSQLValueString($_POST['tenUsername'], "text"),
                       GetSQLValueString($_POST['tenPassword'], "text"),
                       GetSQLValueString($_POST['tenSex'], "text"),
                       GetSQLValueString($_POST['tenEmail'], "text"),
                       GetSQLValueString($_POST['tenDobDD'], "text"),
                       GetSQLValueString($_POST['tenDobMM'], "text"),
                       GetSQLValueString($_POST['tenDobYY'], "text"),
                       GetSQLValueString($_POST['tenDepend'], "text"),
                       GetSQLValueString($_POST['tenMarital'], "text"),
                       GetSQLValueString($_POST['tenPrevSurn'], "text"),
                       GetSQLValueString($_POST['tenEmployTyp'], "text"),
                       GetSQLValueString($_POST['tenNINumber'], "text"));
  mysql_select_db($database_Letting, $Letting);
  $Result1 = mysql_query($insertSQL, $Letting) or die(mysql_error());
  $insertGoTo = "application-formP2.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_Letting, $Letting);
$query_rsTenant = "SELECT * FROM LettingsTenApp";
$rsTenant = mysql_query($query_rsTenant, $Letting) or die(mysql_error());
$row_rsTenant = mysql_fetch_assoc($rsTenant);
$totalRows_rsTenant = mysql_num_rows($rsTenant);
$status = $row_rsTenant['progress'];
// Redirect user if thier application is completed
if($status == "P1complete")
          header("location: application-formP2.php");
and the form
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" >
        <input type="submit" value="Save &amp; continue" />
        <input type="hidden" name="progress" value="P1complete" />
        <input type="hidden" name="MM_insert" value="form1" />
</form>
thanks

i noticed i dint have the session variable on the form i have now included this
<?php
if (!isset($_SESSION)) {
  session_start();
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
  // For security, start by assuming the visitor is NOT authorized.
  $isValid = False;
  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
  // Therefore, we know that a user is NOT logged in if that Session variable is blank.
  if (!empty($UserName)) {
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
    // Parse the strings into arrays.
    $arrUsers = Explode(",", $strUsers);
    $arrGroups = Explode(",", $strGroups);
    if (in_array($UserName, $arrUsers)) {
      $isValid = true;
    // Or, you may restrict access to only certain users based on their username.
    if (in_array($UserGroup, $arrGroups)) {
      $isValid = true;
    if (($strUsers == "") && true) {
      $isValid = true;
  return $isValid;
$MM_restrictGoTo = "failed.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
  $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo);
  exit;
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO hostLettingsTenApp (tenID, progress, tenTitle, tenUsername, tenPassword, tenSex, tenEmail, tenDobDD, tenDobMM, tenDobYY, tenDepend, tenMarital, tenPrevSurn, tenEmployTyp, tenNINumber) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['tenID'], "int"),
                                                     GetSQLValueString($_POST['progress'], "text"),
                       GetSQLValueString($_POST['tenTitle'], "text"),
                       GetSQLValueString($_POST['tenUsername'], "text"),
                       GetSQLValueString($_POST['tenPassword'], "text"),
                       GetSQLValueString($_POST['tenSex'], "text"),
                       GetSQLValueString($_POST['tenEmail'], "text"),
                       GetSQLValueString($_POST['tenDobDD'], "text"),
                       GetSQLValueString($_POST['tenDobMM'], "text"),
                       GetSQLValueString($_POST['tenDobYY'], "text"),
                       GetSQLValueString($_POST['tenDepend'], "text"),
                       GetSQLValueString($_POST['tenMarital'], "text"),
                       GetSQLValueString($_POST['tenPrevSurn'], "text"),
                       GetSQLValueString($_POST['tenEmployTyp'], "text"),
                       GetSQLValueString($_POST['tenNINumber'], "text"));
  mysql_select_db($database_hostLetting, $hostLetting);
  $Result1 = mysql_query($insertSQL, $hostLetting) or die(mysql_error());
  $insertGoTo = "application-formP2.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));
$colname_rsTenant = "-1";
if (isset($_POST['P1complete'])) {
  $colname_rsTenant = $_POST['P1complete'];
mysql_select_db($database_hostLetting, $hostLetting);
$query_rsTenant = sprintf("SELECT progress FROM hostLettingsTenApp WHERE tenID = %s", GetSQLValueString($colname_rsTenant, "int"));
$rsTenant = mysql_query($query_rsTenant, $hostLetting) or die(mysql_error());
$row_rsTenant = mysql_fetch_assoc($rsTenant);
$totalRows_rsTenant = mysql_num_rows($rsTenant);
$status = $row_rsTenant['progress'];
// Redirect user if thier application is completed
if($status == "P1complete")
          header("location: application-formP2.php");
?>
but it still is staying on this page if the column "progress" has "P1complete " in it

Similar Messages

  • Rule based ATP is not working for Components

    Hi All,
    Our requirement is to do availability check through APO for Sales order created in ECC,so we are using gATP.
    Requirement: We are creating salesorder for BOM header (Sales BOM) and avaialbility check should happen for components i.e. Product avalaibility & Rule based substitution.
    Issue: Product availiabilty is working for components but rules based substituion is working,  mean Rules are not getting determind for components.
    Settings:
    - Header doesnot exist in APO and compnents do exist in APO
    - Availability check is not enabled for header item category and enabled for Item category for components
    - Rules have been created for Components in APO
    - Rule base ATP is activated in Check instructions
    We have also tried MATP for this i.e. PPM created in APO but still didn't get the desired result.
    If we create salesorder for the component material directly then Rule based ATP is happening, so for components Rule based ATP is not working.
    How do we enable enable Rulesbased ATP for components, i mean is there any different way to do the same.
    Thanks for help.
    Regards,
    Jagadeesh

    Hi Jagdeesh,
    If you are creating BOM in ECC and CIFing PPM of FG/Header material to APO, I think you need to CIF Header material, too, with material integration model.
    Please include header material in you integration models for material, SO and ATP check as well.
    For component availability check, you can use MATP; but for MATP, FG should be in APO. You need not to CIF any receipts of FG (stock, planned orders, POs etc), so that MATP will be triggered directly. Then maintaining Rules for RMs will enable to select available RMs according to the rule created.
    Regards,
    Bipin

  • 301 Wiki SSL redirect via Server Admin not working

    I can't get http://myserver.com/wiki to redirect to https://myserver.com/wiki. I have other 301 redirects to send users to https pages working fine. How can I fix this? Thanks for your time - it's much appreciated. (Mavericks/Server Admin 3.1.2)

    Regarding the redirect, I don't really understand why it's not possible. You can edit the non-SSL website in Web and add a 301 for /Wiki to redirect to https://myserver.com/wiki. In fact you can redirect the entire site to SSL - but that is problematic. I can understand why Mavericks server would be designed to automatically use SSL for wiki logins, if it's available. I only looked at redirects because this was not working. Without a redirect or with a redirect - I can login to Wiki via non-SSL or SSL. Where (specifically in which text file) are these redirects created using Server Admin written to? I can't find them in apache2/httpd.conf. Thanks again for your help.

  • Promemoria geolocalizzati non funzionano con iOs 7 location-based reminders do not work with iOs7

    promemoria geolocalizzati non funzionano con iOs 7
    location-based reminders do not work with iOs7

    Hi konekotron,
    See this manual about using the Apple Wireless Keyboard with your iPad -
    iPad User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf
    See page 25 and the section on using International Keyboards on page 125.
    A similar guide for the iPhone -
    iPhone User Guide
    manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    See page 28.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Class Based SWF will not work in PHP page

    hello everyone,
    i really hope someone out there can help me with an issue i
    have come across with PHP and AS3.
    i basicly have Made a Class called CrossFade, that fades in
    and cross fades to the next image that are loaded Via an XML file.
    now this SWF works fine in a regular HMTL setting on the
    server, so i know the path to everything is correct. But when it
    comes to being embedded into the PHP page, it just won't work.
    the Files are all contained in a Folder called Banner, the
    SWF is linked the the CrossFade.as class, and the images and XML
    are also located within the Banner folder. and again seeing as its
    working in the HTML setting i know everything is fine.
    can you think of anything that PHP would do to cause this to
    not function? i dont know enough about PHP to figure this out, and
    there isn't much support out there in terms of this issue.
    I would love to hear from anyone that can help or weigh in
    with a suggestion.
    thanks for your time.

    http://www.toptable.ca/media_flashtest.php
    this is the test php page, you can see that the flash banner
    is there, but nothing is going on. no request to the server for the
    new images as you would see normaly with teh AS running.
    http://toptable.ca/swf/banner1/index.html
    <--- this is the HTML page that i sent to them for testing. you
    can see that its working and everything is fine.
    they are, in both cases, all housed in the same folder, and
    unless there is something going on in the PHP page that i don;t
    know about, the paths to the XML and the images and the AS files
    should be the same?

  • GoDaddy's webformmailer.php on my site is not working

    I am stuck.  I created a site for a client and uploaded it to the GoDaddy server so they could also do updates on their HTML editor.  I used the GoDaddy webformmailer.php code they provide and it did work initally.  We tested it several times a few months ago and the test emails were coming through.  We did an update on the site, not touching the webformmailer.php code, and now it is not working.  She even had about 15-20 people say on Facebook that they used the contact page to send messages. 
    I reached out to GoDaddy twice so far, both times with run-around answers:
    Maybe the form was blank that was submitted...
    Add a captcha to it so it verify's that it is indeed a human...
    Can someone help me out here?  Has anyone else had this issue?  I am not .php or SQL savy, just breaking ground with it, but, obviously it worked before, something happened on GoDaddy's end to make it not work now.  Here is the code (what is italicized and in red is GoDaddy's code I copied and pasted):
    <!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>Anthony's Bar &amp; Grill</title>
    <link href="contact.css" rel="stylesheet" type="text/css" />
    <script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2187524" binding="#mapCanvas" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="home.html" target="_parent"><img src="myicons/images/anthonysHeader.png" alt="header" width="500" height="150" hspace="250" /></a>
    <!-- end .header --></div>
    <div class="nav"><a href="home.html" target="_parent"><img src="myicons/images/home.png" alt="home" width="125" height="75" hspace="10" /></a><a href="menu.html" target="_parent"><img src="myicons/images/menu.png" alt="menu" width="125" height="75" hspace="40" /></a></a> <a href="specials.html" target="_parent"><img src="myicons/images/specials.png" alt="specials" width="130" height="75" hspace="30" /></a> <a href="livemusic.html" target="_parent"><img src="myicons/images/liveMusic.png" alt="liveMusic" width="160" height="75" hspace="20" /></a> <a href="photos.html" target="_parent"><img src="myicons/images/photos.png" alt="photos" width="125" height="75" hspace="30" /></a><!-- end of .nav --></div>
      <div class="content">
      <div class="form">
      <form action="/webformmailer.php" method="post">
    <input type="hidden" name="subject" value="Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    First Name:
    <input type="text" name="FirstName" /><br />
    Last Name: <input type="text" name="LastName" /><br />
    Email:        <input type="text" name="email" /><br />
    We'd love to hear from you! Leave us your comments: <br />
    <textarea name="comments" cols="50" rows="10"></textarea><br />
                    <input type="submit" name="submit" value="submit"/>
    <input type="hidden" name="form_order" value="alpha"/> <input type="hidden" name="form_delivery" value="hourly_digest"/> <input type="hidden" name="form_format" value="html"/> 
    </form>
      </div>
      <h3>10371 Southern Maryland Blvd.
          <br />
          Dunkirk, MD, 20754<br />
      301-327 5219 and/or 301-327-5520<br />
      </h3>
      <div id="mapCanvas" style="width:530px; height:300px; min-width:530px; min-height:300px"></div>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2187524: #mapCanvas
                // initialize the google Maps
         function initializeGoogleMap() {
                        // set latitude and longitude to center the map around
                        var latlng = new google.maps.LatLng(38.72055,
                                                                                                                  -76.65971);
                        // set up the default options
                        var myOptions = {
                          zoom: 17,
                          center: latlng,
                          navigationControl: true,
                          navigationControlOptions:
                                    {style: google.maps.NavigationControlStyle.DEFAULT,
                                   position: google.maps.ControlPosition.TOP_LEFT },
                          mapTypeControl: true,
                          mapTypeControlOptions:
                                    {style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
                                   position: google.maps.ControlPosition.TOP_RIGHT },
                          scaleControl: true,
                           scaleControlOptions: {
                                position: google.maps.ControlPosition.BOTTOM_LEFT
                          mapTypeId: google.maps.MapTypeId.ROADMAP,
                          draggable: true,
                          disableDoubleClickZoom: false,
                          keyboardShortcuts: true
                        var map = new google.maps.Map(document.getElementById("mapCanvas"), myOptions);
                        if (false) {
                                  var trafficLayer = new google.maps.TrafficLayer();
                                  trafficLayer.setMap(map);
                        if (false) {
                                  var bikeLayer = new google.maps.BicyclingLayer();
                                  bikeLayer.setMap(map);
                        if (true) {
                                  addMarker(map,37.7715,-122.4,"We are here");
                window.onload = initializeGoogleMap();
               // Add a marker to the map at specified latitude and longitude with tooltip
               function addMarker(map,lat,long,titleText) {
                          var markerLatlng = new google.maps.LatLng(lat,long);
                         var marker = new google.maps.Marker({
                              position: markerLatlng,
                              map: map,
                              title:"We are here",
                                  icon: "http://code.google.com/apis/maps/documentation/javascript/examples/images/beachflag.png"});  
    // EndOAWidget_Instance_2187524
      </script> <a href="https://www.facebook.com/pages/Anthonys-Bar-and-Grill/53652420587?fref=ts" target="_new"><img src="myicons/images/facebook.png" alt="facebook" width="99" height="99" vspace="50" /></a> <a href="https://twitter.com/CharleneWard10" target="_new"><img src="myicons/images/twitter.png" alt="twitter" width="100" height="100" vspace="50" /></a><!-- end .content --></div>
      <div class="footer">
      <p><a href="home.html" target="_parent">Home</a> • <a href="menu.html" target="_parent">Menu</a> • <a href="specials.html" target="_parent">Specials</a> • <a href="livemusic.html" target="_parent">Live Music</a> • <a href="photos.html" target="_parent">Photos</a> • <a href="contact.html" target="_parent">Contact</a> • <a href="platters.html" target="_parent">Platters</a></p>
      <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>

    I've tested your core code (the php that's in red) on a GoDaddy account that includes the PHP script, and the script works. I simply pasted it within the <body> tags of a rudimentary HTML file (empty <head> and no other code).
    However, I agree with those who have said there are better form-handling options, and because form-handling is such a fundamental website feature, I am beginning also to agree with MurraySummers that GD is not a service I'd recommend.  For more than a decade, I've enjoyed using a CGI program called CGIEmail (which I think was originally published by MIT), but GoDaddy has nothing like it. The form data arrives in a text email, not an awkward attachment, and can be arranged in any order, accompanied by any text you want (e.g., instructions, verbose field names, HTML tags and text, CSV record line, whatever, including more than on of these formats in a single email), and can send to any email address(s) you specify. Different forms can send to different addresses, which are specified in the a forms' formatting file, which is a txt file, stored in a restricted directory. (GoDaddy has said a script would not be able to access a restricted directory without displaying the password ... I suppose also bumblebees cannot fly? In any case, GoDaddy could support that in another way if they really cared to.). I was hoping to adapt one of their PHP scripts to create a PHP equivalent, but they provide no documentation (except the install instructions) and it's not a promising use of my time.
    Since this thread is 9 months old, I assume you've resolved your problem by now, but for the record, I'd try running just the PHP in a simple .php file as I did, and be sure the webformmailer.php program is in your root directory. In case it might be corrupted, you might contact GoDaddy support to learn how to reinstall it. The install instructions include a link to that process, but I can't say whether or not the reinstallation might have unwanted side effects.  If it still doesn't work, then the problem must (have been) elsewhere on your page, or (the most likely cause) you haven't specified the target address correctly. All three of GoDaddy's email scripts send only to one address, which you specify on a separate page for your account.
    If you've resolved this problem, please consider explaining how. It might be of help to others.

  • PHP email form with Validation - not working

    Hello;
    I am new to using php. I usually use coldfusion or asp but this site requires me to write in php. I have a form I am trying to get to work and right now.. it doesn't do anyhting but remember what you put in the fields. It doesn't want to send, and it won't execute the validation script for the fields that are required. Can anyone help me make this work? I'm confused and a definate newbie to PHP.
    Here is my code:
    <?php    
                  $PHP_SELF = $_SERVER['PHP_SELF'];   
                  $errName    = "";   
                  $errEmail    = "";
                  $errPhone    = "";        
                  if(isset($_POST['submit'])) {        
                          if($_POST["ac"]=="login"){            
                        $FORMOK = TRUE;    // $FORMOK acts as a flag. If you enter any of the conditionals below,                             // it gets set to FALSE, and the e-mail will not be sent.
                        // First Name           
                        if(preg_match("/^[a-zA-Z -]+$/", $_POST["name"]) === 0) {               
                            $errName = '<div class="errtext">Please enter you name.</div>';               
                            $FORMOK = FALSE;           
                        // Email           
                    if(preg_match("/^[a-zA-Z]\w+(\.\w+)*\@\w+(\.[0-9a-zA-Z]+)*\.[a-zA-Z]{2,4}$/", $_POST["email"]) === 0) {                                                    $errEmail = '<div class="errtext">Please enter a valid email.</div>';               
                            $FORMOK = FALSE;           
                        // Phone           
                        if(preg_match("/^[a-zA-Z -]+$/", $_POST["phone"]) === 0) {               
                            $errPhone = '<div class="errtext">Please enter your phone number.</div>';               
                            $FORMOK = FALSE;           
                        if($FORMOK) {               
                                $to = "[email protected]";  
                                $subject = "my. - Contact Form";                  
                                $name_field = $_POST['name'];               
                                $email_field = $_POST['email'];               
                                $phone_field = $_POST['phone'];
                                $city_field = $_POST['city'];
                                $state_field = $_POST['state'];               
                                $message = $_POST['comment'];                
                                $message = "               
                                Name: $name_field               
                                Email: $email_field
                                Phone: $phone_field   
                                City: $city_field   
                                State: $state_field               
                                Message: $message";                
                                $headers  = 'MIME-Version: 1.0' . "\r\n";               
                                $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";                
                                // Additional headers               
                                $headers .= 'To: <[email protected]>' . "\r\n";               
                                $headers .= '[From] <$email_field>' . "\r\n";                
                                // Mail it               
                                mail($to, $subject, $message, $headers);                
                                header("Location: thankyou.php")
                                // I have no idea what these next 3 lines are for. You may just want to get rid of them.                   
    ini_set("sendmail_from","[Send from]");
    ini_set("SMTP","[mail server]");
    mail($to, $subject, $message, $headers);
                                } else {               
                                echo "Error!";              
                        ?>
    <form method="post" action="<?php $PHP_SELF ?>" id="commentForm">
    <input name="name" size="40" value="<?php echo $_POST["name"]; ?>" type="text">
                         <?php  if(isset($errName)) echo $errName; ?>
    <input name="email" size="40" value="<?php echo $_POST["email"]; ?>"  type="text">
            <?php  if(isset($errEmail)) echo $errEmail; ?>
    <input name="phone" size="40" value="<?php echo $_POST["phone"]; ?>" type="text" id="phone">
            <?php  if(isset($errPhone)) echo $errPhone; ?>
    <input name="city" size="40" value="<?php echo $_POST["city"]; ?>" type="text" id="city">
    <input name="state" size="40" value="<?php echo $_POST["state"]; ?>" type="text" id="state">
    <textarea name="comment" cols="30" rows="10" id="comment"><?php echo $_POST["comment"]; ?></textarea>
    <input type="submit" value="Submit" name="submit" class="contact-submit" />
    </form>
    It seems pretty simple.. but it's not working at all. I would also like this page to submit to it's self, and when it actually does send an email, to just make the form disappear and replace it with the thank you text instead of sending you to another page. I also do not need to use an smtp server, it goes directly to the network server when sent.
    I'm really sorry to ask all of this, I'm trying to learn this language and need to make this work.
    Thank you for anyones help in advance.

    .oO(BarryGBrown)
    > I have a php file which generates an email from a form
    in a website I have
    >designed. I just want to make some areas of the final
    generated email in bold
    >text. I know if people have plain text only selected in
    their email client they
    >won't see the bold text, but at least it will reach a
    certain percentage of
    >users.
    You can't do bold text in a normal email. Plain text is just
    that -
    plain text. For anything more you need HTML. _If_ you should
    need it.
    Usually plain text serves pretty well and is the most
    efficient way.
    > the line in question is -
    >
    > $body ="Booking request details from website:\n\n";
    >
    > I have tried putting  and ,
    syntax is used in some forum software, but besides that it
    has
    no meaning whatsoever.
    >inside the inverted commas, outside
    >etc, plus tried different declarations within the
    <head>, nothing works! What
    >am I doing wrong?
    You would have to create an entire HTML email with all the
    required
    headers and boundaries. Quite difficult to do by hand with
    PHP's mail()
    function.
    > I am a beginner with this php stuff, please be kind!
    Then you should start simple with plain text. There are some
    classes out
    there which make it easy to generate text and HTML emails
    (phpmailer for
    example), but you should be familiar with PHP coding if you
    want to use
    them.
    Micha

  • 302 Redirect Location Header Rewrite not working with code upgrade

    Hi,
    Description:
    We have a portal webservice hosted by an ACE4710. It has two services (www/https) on the same IP 10.1.1.1.
    One is a redirect service that redirects all requests to tcp/80 on this ip to the other which is a 'standard' https proxy service.
    The backend servers are http only. Externally everything needs to be https.
    So we have an ssl proxy and Location header http to https rewrite on the https service.
    The configuration below operates correctly on v5_1_2.
    But with a code upgrade to 5_3_1b, the Location header rewrite does not work.
    We've tried several different configurations and even 'ssl url location rewrite ".*". It just looks like the ACE is completely ignoring the configuration to rewrite the Location field.
    Reverting to the older code fixes the problem.
    Problem seen:
    Here is the problem as seen on the *client*. The 302 redirect Location header is NOT rewritten:
    Response headers:
    HTTP/1.1 302 FOUND
    Server: nginx
    Date: Fri, 20 Mar 2015 10:59:43 GMT
    Content-Type: text/html; charset=utf-8
    Content-Length: 295
    Connection: keep-alive
    Location: http://website.liveportal.nhs.uk/homepage/information
    Cache-Control: no-cache, no-store
    Set-Cookie: information=35a7831d-928d-4122-aef3-39ef48ac4440; Path=/; secure; HttpOnly
    X-Frame-Options: DENY
    HTTPSampleResult fields:
    ContentType: text/html; charset=utf-8
    DataEncoding: utf-8
    Config extract:
    1) Set up the servers (4 normal on tcp/80 and one for a redirect)
    rserver host WEBSERVICE-1
      ip address 192.168.1.1
      conn-limit max 200000 min 160000
      inservice
    ...and the same for the other three
    rserver redirect PORTAL_REDIRECT
      webhost-redirection https://%h/%p 302
      inservice
    2) Set up the server farms
    serverfarm host PORTAL_LIVE
      probe webping
      rserver WEBSERVICE-1 80
        inservice
      rserver WEBSERVICE-2 80
        inservice
      rserver WEBSERVICE-3 80
        inservice
      rserver WEBSERVICE-4 80
        inservice
    serverfarm redirect PORTAL_HTTP_REDIRECT
      rserver PORTAL_REDIRECT
        inservice
    3) Setup the ssl proxy and a location rewrite to https for responses from the servers
    action-list type modify http HTTPS_LOCATION
      header rewrite response Location header-value "http://(.*)" replace "https://%1"
    ssl-proxy service WEB_SSL_PROXY
      key webportal.key
      cert webportal.crt
      chaingroup root-chain
      ssl advanced-options SSL-SECURE-STRONG-WEB
    4) Set up the L4 services
    class-map match-all PORTAL_HTTP
      2 match virtual-address 10.1.1.1 tcp eq www
    class-map match-all PORTAL_SSL
      2 match virtual-address 10.1.1.1 tcp eq https
    5) Setup the policy maps - one for the reals servers with header rewrite for redirects
    policy-map type loadbalance http first-match PORTAL_HTTP
      class class-default
        serverfarm PORTAL_HTTP_REDIRECT
    policy-map type loadbalance http first-match PORTAL_SSL
      class class-default
        serverfarm PORTAL_LIVE
        action HTTPS_LOCATION
    6) Create the service policy
    policy-map multi-match EXTERNAL-SERVICES
      class PORTAL_SSL
        loadbalance vip inservice
        loadbalance policy PORTAL_SSL
        loadbalance vip icmp-reply
        appl-parameter http advanced-options PARAM-HTTP
        ssl-proxy server WEB_SSL_PROXY
      class PORTAL_HTTP
        loadbalance vip inservice
        loadbalance policy PORTAL_HTTP
        loadbalance vip icmp-reply
    7) Apply to the interface
    interface vlan 211
      description External Access
      ip address x.x.x.x 255.255.255.0
      alias x.x.x.x 255.255.255.0
      peer ip address x.x.x.x 255.255.255.0
      access-group input PERMIT-ALL
      service-policy input EXTERNAL-SERVICES
      no shutdown

    I found that the v5_3_1b code seems to need a bit of extra configuration and it now works ok.
    parameter-map type http PARAM_HTTP
    header modify per-request
    no persistence-rebalance
    case-insensitive

  • Pick List Value Not Working Properly

    Hi Oracle Framework Gurus,
    I have a strange Issue in which one of my cusom page is working properly in Jdev and not working Properly when deployed in the apps instance.
    There are two custom pages with the same VO.
    What I do is have a picklist from one of the custom page and depending on the value of the picklist and I navigate to the other custom page.
    This is working properly in the JDev,But for some reasons it works properly in apps instance, when I try to run the first time(ie) when I run page A and pick 'X' from the picklist the Page 'B' is coming properly as per the controller code and when i pick 'Y' from the picklist in Page B, it is navigating to Page A as per the controller code.
    This works fine for the first time,But when i again select 'X' from the picklist the proper value from the Picklist is not getting selected and passed to the custom package and so I get wrong values in Page 'B'
    What could be the reason for it as it working fine in Jdev,I can navigate from Page A to Page B and Page B to Page A as many times possible.

    Hi Anand,
    Controller1 :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    //String strPersonId = Integer.toString(intPersonId);
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    // Date testdate = (Date)sysdate.dateValue();
    // get the Application Module
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    Serializable parameters[] = { strPersonId,convSysDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Sysdate PF "+convSysDate);
    //pass parameters to Application Module
    oaAM.invokeMethod("insertLovRow", param);
    if ((String)pageContext.getSessionValue("PFlag1") != null)
    String PFlag1 =(String)pageContext.getSessionValue("PFlag1");
    String SDate1 =(String)pageContext.getSessionValue("SDateSession1");
    Serializable param1[] = { SDate1 };
    oaAM.invokeMethod("insertLovRow", param);
    oaAM.invokeMethod("initEmpLovQuery1",param1);
    oaAM.invokeMethod("initEmpTransLovQuery1");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    else
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    oaAM.invokeMethod("totexecQuery");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    oaAM.invokeMethod("initEmpLovQuery");
    OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
    oaviewobject1.reset();
    if (oaviewobject1 != null)
    do
    if(!oaviewobject1.hasNext())
    break;
    oaviewobject1.next();
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String fullName = (String)row.getAttribute("EmpDep");
    System.out.println("The Name is "+fullName);
    } while(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    //String strPersonId = Integer.toString(intPersonId);
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("ViewDetails") != null)
    pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmployeePanelIB",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    System.out.println("strPersonId "+strPersonId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("update"))
    OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
    String sDate = DepStatus1.getSelectionValue(pageContext);
    //String sDate = DepStatus1.getValue(pageContext).toString();
    //Serializable parameters[] = { strPersonId,sDate };
    Serializable parameters[] = { strPersonId,sDate };
    Serializable param[] = { strPersonId };
    System.out.println("The PersonId "+strPersonId);
    System.out.println("The Controller Date passed is IBUtil "+sDate);
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    String flag = "1";
    //pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.putSessionValue("PFlag", flag);
    pageContext.putSessionValue("SDateSession", sDate);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpTestPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    Controller 2:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    //String strPersonId = Integer.toString(intPersonId);
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    // get the Application Module
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    Serializable parameters[] = { strPersonId,convSysDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Sysdate PF "+convSysDate);
    //pass parameters to Application Module
    oaAM.invokeMethod("insertLovRow", param);
    if ((String)pageContext.getSessionValue("PFlag") != null)
    String PFlag1 =(String)pageContext.getSessionValue("PFlag");
    String SDate1 =(String)pageContext.getSessionValue("SDateSession");
    Serializable param2[] = { strPersonId, SDate1 };
    Serializable param1[] = { SDate1 };
    oaAM.invokeMethod("insertLovRow", param);
    oaAM.invokeMethod("initEmpLovQuery1",param1);
    oaAM.invokeMethod("initEmpTransLovQuery1");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    else
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    oaAM.invokeMethod("totexecQuery");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    oaAM.invokeMethod("initEmpLovQuery");
    OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
    oaviewobject1.reset();
    if (oaviewobject1 != null)
    do
    if(!oaviewobject1.hasNext())
    break;
    oaviewobject1.next();
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String fullName = (String)row.getAttribute("EmpDep");
    System.out.println("The Name is "+fullName);
    } while(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    //int intPersonId = pageContext.getEmployeeId();
    //String strPersonId = Integer.toString(intPersonId);
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    if (pageContext.getParameter("ViewDetails") != null)
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpPanelPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    pageContext.putSessionValue("strPersonId", strPersonId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("update"))
    OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
    String sDate = DepStatus1.getSelectionValue(pageContext);
    //String sDate = DepStatus1.getValue(pageContext).toString();
    Serializable parameters[] = { strPersonId,sDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Controller Date passed is CBUtil "+sDate);
    System.out.println("The PersonId "+strPersonId);
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    String flag = "2";
    //pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.putSessionValue("PFlag1", flag);
    pageContext.putSessionValue("SDateSession1", sDate);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpIBUtilPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    Hi Above two are the controller codes forget the rest of the codes,Concentrate on the PFR code, Just want to know what I am doing is correct or not.
    First time when I select the Picklist value,the value gets passed as a parameter to the custom package and the page gets displayed properly and vice versa,But I am not able to do the same cycle again for some reasons.
    Please get back to me ASAP.
    Regards,
    Magesh.M.K.
    Edited by: user1393742 on Oct 19, 2010 11:58 PM

  • Y min value not working in horizontal Flash Bar Charts

    Hello All,
    Going crazy trying to work this one out.
    I have a problem with a Flash Chart (APEX version 3.0.1.00.07)
    The data mainly begins at 97 and goes to no more than 100, therefore I want the min to start at 96 so the results don't look to similiar. Why when I imput my minimum value, it does not work for Horizontal Flash charts ?
    It seems to work for stack or vertical charts, can something be done via the "custom XML" ?
    Link below use deatils as follows
    User Name = [email protected]
    Password = helpme
    http://apex.oracle.com/pls/otn/f?p=35407:3:550931101789266:::::
    select option "Same day"

    Hi Deb,
    Both of your queries are using multi-series syntax i.e. returning more than one series of data, therefore your generated chart is actually generating 6 series rather than just the two that you're aiming for. You could try changing your queries to ensure they each generate a single series of information, which would then result in the extra Y-axis being applied to your "Series 2". Here's an example of what I mean:
    Series 1:
    select null link, label, value from (
    select 'test' label, 1 value from dual
    union all
    select 'test2' label, 2 value from dual
    union all
    select 'test3' label, 3 value from dual
    )Series 2:
    select null link, label, value from (
    select 'test' label, 100 value from dual
    union all
    select 'test2' label, 200 value from dual
    union all
    select 'test3' label, 300 value from dual
    )I hope this helps.
    Regards,
    Hilary

  • Field value not working as "Can grow" when exported in PDF

    Hi, I have a unique problem. We have a report which is using a sub-report. When we run that report in Crystal report and preview then it looks fine. This subreport is designated as "can  grow" so if the field length is bigger than the size then it is coming in the second row. Everything works fine except when we export this report in PDF.
    When we export in PDF then this field is not working as "Can grow" and remaining value of the fields is  truncated. This is happening both in XI and 2008 version of Crystal client.
    Thanks,

    Hi, This is declared as bug by Business Objects Support and Product team will decide if they want to include fix in next release (or fix). This is not possible before Dec 2009 or Early 2010. 
    Below are the general steps on how to apply the suggested workaround:
    1. Remove the on-demand subreport caption, and add an empty string to it instead.
    1.1 In the u201CDesignu201D view of the report, right click on the subreport and select u201CFormat Subreportu2026u201D
    1.2 In u201CFormat Editoru201D window, under the tab u201CSubreportu201D, click on the u201CX-2u201D button of the option u201COn-Demand Subreport Captionu201D
    1.3 In the u201CFormula Workshopu201D window, highlight the text in the formula, and cut it. ( Ctrl-X)
    ( We are just copying the text, as we need to use the samething for the formula or text object we will use to replace this. )
    1.4 Type the following in the formula: u201Cu201D
    1.5 Click on the button u201CSave and closeu201D, to close the u201CFormula Workshopu201D
    1.6 Back to the u201CFormat Editoru201D window, click on the u201COKu201D button to accept the change.
    2. Create a formula or insert a text object in which you add the text or fields you will like to display
    ( In the following steps we will be using a formula )
    2.1 In the u201CField Exploreru201D, right click on u201CFormula Fieldsu201D and select u201CNewu201D
    2.2 In the u201CFormula Nameu201D window, type the name of the formula. ( Example: My subreport caption )
    2.3 In the u201CFormula Workshopu201D, copy the text you cut in step 1.3, or simply add the database fields and text you will like to display for your on-demand subreport caption.
    2.4 Save and close the formula by clicking on the u201CSave and closeu201D button
    3. Insert the formula over the on-demand subreport, and resize the field to be of the desired length.
    4. Format the formula to display like a hyperlink. ( Blue font and underlined text )
    4.1 Right click on the formula inserted in step 3, and select u201CFormat Fieldu2026u201D
    4.2 In the u201CFormat Editoru201D, under the tab u201CFontu201D, set the color to blue
    4.3 Still under the tab u201CFontu201D, check the u201CEffectsu201D option u201CUnderlineu201D
    4.4 Under the tab u201CCommonu201D, check the option u201CCan Growu201D
    4.5 Click on the u201COKu201D button to accept the change
    5. Move the formula to the back in order to ensure you can drill-down on the on-demand subreport
    5.1 Right click on the formula inserted above the on-demand subreport and select u201CMove u2013 To Backu201D
    Now, when exporting the report to PDF format, the formula used to replace the u201Con-demand subreport captionu201D that displays more than one line will all be exported.
    This workaround has following limitations:
    The User can see the service description in two lines because of the u2018Text Objectu2019, the On demand subreport is not growing into the second line in the crystal report since we removed the caption.
    So the user has to carefully click on the first line of the description in the main report to open the subreport. If he clicks on the second line then it wonu2019t open the required subreport and it may create confusion.
    If we manually stretch out the subreport to occupy two lines space then it will leave a gap in between when we have only 1 line service description.
    So plan ahead of time about how lengthy text in su-report would be.

  • Time based stacking does not work for 0 seconds

    Related to my previous note about stacking DNG with CR2, it appears that selecting 0 time interval for stacking does not work the way I would expect.
    A 0 time interval for stacking should mean that all times that are exactly the same (ie. DNG from CR2 file) get merged. This does not happen. It would seem that a time interval of 1 second is required to stack a DNG that comes from a CR2 file together.
    So if I have a CR2 file that was taken at 11:23:34 and convert it to DNG, I now have two files taken at 11:23:34.
    If I use the "time based stacking" and select 0 second gap, they will not be stacked together.
    I need to use a 1 second gap.
    It would be nice to see this fixed

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".

  • Wait for field to equal to value not working in Sharepoint desginer 2013

    Hi ,
    I have two Work flow
    WF1 & WF2
    In below image WF2 it will update a list column where WF1 work flow In Progress
    In WF1
    It wait for Other Task Parallel value equal to started.
    WF2 Update the list correctly but WF1 not work properly but
    when I update list Item then it works fine for WF1 .
    Please let me know if any thing wrong.
    Regards
    Sachin

    Hi cameron,
    We have two list as mention below
    Agent list -Attach WF1
    Task list-Attach WF2
    WF1 one wait for action change column value from WF2
    WF2 update a column value as show in fig above perfectly fine, where WF1 in waiting state to get the status.
    but status is already updated.
    When I have edit the same  item in which WF2 update its column value then my WF1 working fine for " wait for Other Task Parallel value equal to started" action in my Agent list.
    Regards
    Sachin

  • CFGRIDCOLUMN VALUES Not Working

    I would like my editable CFGRID to display a list in some of
    the CFGRIDCOLUMN's. I have been unsuccessful at displaying values
    for user selection when using the values attribute. Any ideas out
    there? thx
    <cfformgroup type="page" label="Vision">
    <cfgrid name="gridVision"
    query="Vision"
    insert="no"
    delete="no"
    rowheaders="no"
    selectmode="edit"
    height="100">
    <cfgridcolumn select="no" name="visionTestID"
    display="no">
    <cfgridcolumn select="yes" name="enterDate"
    header="Screening Date" width="100">
    <cfgridcolumn select="yes" name="TestType" header="Test Type"
    values="Instaline, Blackbirds">
    <cfgridcolumn select="yes" name="TestNumber">
    <cfgridcolumn select="yes" name="Glasses" header="Glasses"
    values="Tested With, Lost-Broken, Forgotten">
    <cfgridcolumn select="yes" name="BothEyes" header="Both
    Eyes Result">
    <cfgridcolumn select="yes" name="LeftEye" header="Left Eye
    Result">
    <cfgridcolumn select="yes" name="RightEye" header="Right
    Eye Result">
    <cfgridcolumn select="yes" name="Result" header="Pass or
    Fail">
    <cfgridcolumn select="yes" name="visionReferral"
    type="boolean" header="Referral">
    <cfgridcolumn select="yes" name="ScreenerID"
    header="ScreenerID">
    </cfgrid>

    If you are using flash form. This is how I would do it. The
    value does not work because it's a title for the grid.
    <cfform format="Flash" name="Vision" height="250"
    width="1000" preservedata="yes" style="marginTop: 0;
    background-color:##CCCCCC;">
    <cfformgroup type="horizontal">
    <cfgrid name="VisionGrid" query="Vision" format="Flash"
    rowheaders="No" autowidth="yes" onchange="for (var i:Number = 0;
    i<Glasses.length; i++) {if (Glasses.getItemAt(
    ).data == VisionGrid.selectedItem.Glasses) Glasses.selectedIndex
    = i}">
    <cfgridcolumn select="no" name="visionTestID"
    display="no">
    <cfgridcolumn select="yes" name="enterDate"
    header="Screening Date" width="100">
    <cfgridcolumn select="yes" name="TestType" header="Test
    Type" values="Instaline, Blackbirds" width="100" >
    <cfgridcolumn select="yes" name="TestNumber"
    width="100">
    <cfgridcolumn select="yes" name="Glasses"
    header="Glasses" values="Tested With, Lost-Broken, Forgotten"
    width="100">
    <cfgridcolumn select="yes" name="BothEyes" header="Both
    Eyes Result" width="100">
    <cfgridcolumn select="yes" name="LeftEye" header="Left
    Eye Result" width="100">
    <cfgridcolumn select="yes" name="RightEye" header="Right
    Eye Result" width="100">
    <cfgridcolumn select="yes" name="Result" header="Pass or
    Fail" width="100">
    <cfgridcolumn select="yes" name="visionReferral"
    type="boolean" header="Referral" width="100">
    <cfgridcolumn select="yes" name="ScreenerID"
    header="ScreenerID" width="100">
    </cfgrid>
    </cfformgroup>
    <cfformgroup type="horizontal">
    <cfformitem type="text" width="75">Test
    Number:</cfformitem>
    <cfinput type="text" name="TestNumber" width="170"
    bind="{VisionGrid.dataProvider[VisionGrid.selectedIndex]['TestNumber']}"
    onChange="VisionGrid.dataProvider.editField(VisionGrid.selectedIndex,
    'TestNumber', TestNumber.text);"/>
    </cfformgroup>
    <cfformgroup type="horizontal">
    <cfformitem type="text"
    width="75">Glasses:</cfformitem>
    <cfselect name="Glasses" width="170" size="1"
    onchange="VisionGrid.dataProvider.editField(VisionGrid.selectedIndex,
    'Glasses', Glasses.selectedItem.data);">
    <option value="Tested Withmin">Tested
    With</option>
    <option value="Lost-Broken">Lost-Broken</option>
    <option value="Forgotten">Forgotten</option>
    </cfselect>
    </cfformgroup>
    </cfform>

  • Javascript URL redirect (setting value) not working

    Hello All,
    Apex 3.1
    I am trying to write javascript that will execute off the click of an icon in a report. It will display a prompt box to the user, and when the user clicks "OK", I would like to re-direct the user to another page, setting the value in the prompt to a page item on the new page. Here is the javascript I'm trying to use:
    <script language="JavaScript" type="text/javascript">
    function copy_prompt()
    var copies=prompt("Number of copies?","1");
    if (copies!=null && copies!="" && copies !="0")
    $s('P6_ITEM_COPY_COUNT',copies);
    redirect('f?p=&APP_ID.:82:&SESSION.::NO:P82_ITEM_COPY_COUNT:&P6_ITEM_COPY_COUNT.')
    </script>
    The problem I'm having is that since session state is not being set, it is passing a null value to the new page. I can see on page 6 the item P6_ITEM_COPY_COUNT is getting set appropriately, but the value is not in session state. Any suggestions?
    Thanks!

    In trying the suggestion, I receive the following error when redirected:
    Error ERR-1002 Unable to find item ID for item "<value in javascript prompt>" in application "103".
    Thanks!
    SOLUTION: I looked at my URL syntax in the redirect statement, and was missing an extra colon (:) before the P82_ITEM_COPY_COUNT. Correct syntax is:
    redirect('f?p=&APP_ID.:82:&SESSION.::NO*::*P82_ITEM_COPY_COUNT:' + copies);
    Edited by: potter_geek on Dec 8, 2009 8:51 AM

Maybe you are looking for

  • Hooking up to Brother printer wirelessly

    I just purchased a Brother All-in-One printer that is supposed to be able to be hooked up to wirelessly.  I've input the IP address and followed the instructions on the set-up CD but it still isn't connecting wirelessly.  Can anyone give me any sugge

  • Problem Change SAP Query in Crystal Reports

    Hi, i have a problem with changing a SAP Query in an Crystal Reports. I build a Report with a Query(1) and Design the Report complet everything works fine. I make a new Query(2) and if i make a new Crystal Report with this new Query everything works

  • Time Zone issue with 7.0 and DB2

    Hi, We are having a time zone issue with weblogic server 7.0 and DB2 database. I would really appreciate if somebody provides a solution for this issue. Our db2 DB is located in PST time zone and weblogic server is located in EST time zone. When we a

  • Is family base for people who don't have kids?  can I unscribe from family base if I find i don't need it at a later time?

    Is family base just for people who have kids?  Can I un subscribe to it if I don't need it later on?  I only want it to block un wanted calls. Thank you Bettie

  • Horizontal center align multiple divs

    I have a container div (#div1), which contains 5 child divs (#div2, #div3, #div4, #div5, #div6) contained inside it. The code is something like this: <div id="div1"> <div id="div2">Content2</div> <div id="div3">Content3</div> <div id="div4">Content4<