Help with methodology on 1 to 1 form/relationships

So this post if more looking for methodology verses a solution. I have a couple of Tables with Forms in my Application.
We have a root cause Table which is where we create case to track the root cause of an issue.
A root cause case can be generated from many methods: A phone call, an incident, a service request etc….
We have recently implemented another table and form for tracking incidents as they happen.
Ground rules:
1.     Every Incident requires an incident ticket (easy),
2.     Not every incident requires us to generate a root cause case
I am thinking of placing a button on the Incident form that would in fact generate the shell for the root cause case. So (ON CLICK) it would take you to a new Root Cause case form and populate the Inicdent ID field on the Root Cause table to be the ID of the incident that was used to generate the ticket.
In thinking through avoiding creating multiple Root Cause cases for an incident, I was thinking I needed a method to make the button visible or invisible based on whether there was a root cause that had the Incident ID in the Root cause table.
Here is where thoughts on method come in.
I was thinking of doing the following steps:
1.     Create button with process to Go to and Create a new Root Cause
a.     This would go to the new page and populate the Incident ID field with the incident ID.
2.     Once on the new Root Cause Page, I would complete the shell and then have a button to submit/save and one of the things it would do is check to see if the Incident ID field was populated.
a.     If populated, run an insert query to insert the Root Cause ID into the Root Cause ID field on the Incident Table.
i.     I would also think about sending the user back to the Incident page after they submit as well. But this is just aesthetics I think.
b.     If not populated, create the RCCA as normal
3.     When an incident is created, it would check to see if the Root Cause ID field was Null
a.     If Null – Create Root Cause button is visible
b.     If NOT Null – Create Root Cause button is hidden
My question is am I over thinking this and not using processes that are already available and I am just unaware of them or is this method an efficient means to accomplish what I am trying to do.
Thanks in advance for taking the time to read.
Wally

Check this :-
http://helpx.adobe.com/creative-suite/kb/error-serial-number-qualifying-product.html

Similar Messages

  • Need help with calculated fields in Adobe Interactive Forms

    Hi Gurus,
    I have an Adobe Interactive form in which i have radio buttons. Upon selecting any of the radio buttons, value in text box should be changed( Calculqated filedS). How i can achieve this?
    Regards,
    Srini
    Moderator message: wrong forum, please post again in Adobe Interactive Forms, but always try yourself before asking.
    Edited by: Thomas Zloch on Jul 13, 2010 11:58 AM

    Hi Tapan
    No, it's working ,with  one remark.
    I've done a mistake, in the final formula. The logic remain the same! ;)
     The calculation values for second column ( COL2 ) are 1,2,3 and not 0,1,2 as I wrote  before and as for COL1 are so the formula is
    =3*if(COL1="ABC",0,IF(COL1="DEF",1,2)+if(COL2="RST",1,IF(COL2="YYZ",2,3)
    and not
    =3*if(COL1="ABC",0,IF(COL1="DEF",1,2)+if(COL2="RST",0,IF(COL2="YYZ",1,2)
    I created also a real example  for you, with 2 dif calculation ways . First I created 2 calc_columns for COL1 and COL2 ( CALC_COL1+CALC_COL and after I added both these 2 column , and second way is to calculate directly) .
    Check this image
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Need help with code for adding dates to form

    Hello forum goers
    I'm new to making forms and figured out how to auto add the date, however I need the form to change the date for every copy made.
    For example today is 06/08/2012 if I print 10 copies of the form it will output 10 pages ranging from 06/08/2012 to 06/17/2012. If code exists to do this I would be very gratefull to whoever helps, I also wouldn't mind if that is not possible for manually inputing the start / end dates.
    Currently I print 15-30 copies of the form and hand write each of the dates but I'm just getting to busy to do that. I also cannot print one a day it must be in batches.
    Thanks in advanced.

    What you are asking for is more complex than just setting the current date. Each time the form prints it has to know that it has to change the date. I would suggest doing this.
    First, setup a document level script to set the date to the current date. I suspect that you have already done this?
    Next, Create a "DidPrint" document action to increment the date.  To do this the script will need to scan the current text value of the date, add one day to it, and then reformat it.  You'll find information on this type of scripting in these articles:
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-2
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-3
    Since the increment happenes in the Did Print you will need to print each copy individually. If you enter 10 copies in the print dialog it won't work. You have to print one at a time.  You can automate this activity with a console script.
    One of the advantages of incrementing in the DidPrint is that you can also manually enter a date and it will increment from there.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)
    Having trouble, Why Doesn't my Script Work?

  • Help with an expanding table on a form

    I currently use a form as a photo log for tracking the image number and a photo description.  The form was created in MS Word.  I would like to create this form using LiveCycle Designer and have tried a few things but nothing works the way I would like it to.  The photo log is a table with two columns and a header row.  The table expands (by using the TAB key) the number of rows commensurate with the number of photos entered.  The columns are for a photo number and a photo description.  I would like to be able to create this in LIveCycle so that it works as easily as the MS word doc does (as far as expanding the rows).  I've checked on this forum and cannot find any help topics or threads that match my specific needs.  can anyone offer some insight as to how to solve the problem?  I thank you in advance for your assistance.
    Jim

    You'll need an "exit" event for the last line in your table. You'll need to check to be sure that it isn't empty, and that it's the last line. Then after you add the line (if necessary) you'l need to set the focus back to the first column in the new line.
    Bonus: You'll probably want to be able to have the code check to see if a line is empty (and not the last line) so that you don't have a bunch of empty lines.
    If you'd like some code help, PM me what you're starting with.

  • Help with multiple behaviors applied to a form

    I built a simple form for two purposes: to collect name and email, and allow the user to download a pdf document (free report). The user MUST successfully submit their name and email BEFORE they are allowed to download the pdf.
    To do this, I assigned the "validate form" and "open browser window" behaviors to the submit/download button, so when the form is submitted, the user is automatically taken to the pdf.
    THE PROBLEM is when the user leaves a required field blank, the validation error pops up to say "___ is required", but the pdf still opens in another tab even though the form hasn't been successfully completed.
    How can I make the pdf download conditional upon successful submission of the form? I know there has to be a way, but since I'm only familiar with HTML & CSS and have limited knowledge of javascript, PHP, etc, I cannot even begin to figure it out... I've tried searching the forums and Google for answers, but no luck.
    PLEASE HELP!
    Thank you!

    Never mind, I fixed it.
    I assigned the "open browser window" behavior to the form tag for the "onSubmit" event. That did the trick.
    So now the code looks like this:
    <form action="" method="get" name="downloadreport" onsubmit="MM_openBrWindow('assets/Capturing_Interest.pdf','','')">
    <p align="left">Name: <input name="first" type="text" class="textfield" id="first" size="29" maxlength="50" />*<br/>
         Company: <input name="company" type="text" class="textfield" id="company" size="26" maxlength="50" />*<br/>
         Your Title: <input name="position" type="text" size="25" maxlength="50" class="textfield" /><br/>
         E-mail address: <input name="email" type="text" class="textfield" id="email" size="21" maxlength="50" />*
    </p>
    <p align="left"><input name="download" type="submit" onclick="MM_validateForm('first','','R','company','','R','email','','RisEmail');return document.MM_returnValue" value="Download the free report"  /></p>
    </form>

  • Help with Element EMAIL is undefined in FORM

    I am having issues getting my form to work properly after
    moving my files in my repository into a trunk directory. It may not
    be the reason things are failing now but it is the only change I
    have made since yesterday when this code worked. Any help would be
    greatly appreciated.
    Element EMAIL is undefined in FORM.
    The error occurred in C:\dev\b\trunk\content\contactnew.cfm:
    line 139
    137 : <!--- Send an e-mail to the proper group with the
    form information --->
    138 : <cfmail
    139 : from="#form.email#"
    140 : to="[email protected]"
    141 : subject="Contact Us Form from"
    Resources:
    Check the
    ColdFusion documentation
    to verify that you are using the correct syntax.
    Search the
    Knowledge Base
    to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
    .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 11-Nov-08 03:51 PM
    Stack Trace (click to expand)
    at
    cfcontactnew2ecfm541056183.runPage(C:\dev\b\trunk\content\contactnew.cfm:139)
    coldfusion.runtime.UndefinedElementException: Element EMAIL
    is undefined in FORM.
    at
    coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659)
    at
    coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612)
    at
    coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)
    at
    coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)
    at
    cfcontactnew2ecfm541056183.runPage(C:\dev\b\trunk\content\contactnew.cfm:139)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
    at
    coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:175)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at
    coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
    at
    coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Here is the code I am working on...

    I tried adding what you said to the document. The email is
    not given when the form opens in the browser but is passed via the
    form after it is filled out and submited. The email value should be
    whatever the person adds to the email textbox. Again this was
    working yesterday but has since stopped after I migrated my files
    into a trunk directory in SVN.
    Thanks for your reply.

  • Help with httpd.conf redirect to our Forms Application

    Hello. We are running Oracle Application Server 10g Release 2 (10.1.2) Forms & Reports services on a Windows 2003 x64 server. I'm having a difficult time trying to get the default Oracle iAS homepage to redirect to our forms application installed on the same server. For example, we access our server homepage at http://db1. We access our forms app at http://db1/forms/frmservlet?form=C:\forms\execs\app.fmx. In httpd.conf I've tried the following:
    1. Redirect / http://db1/forms/frmservlet?form=C:\forms\execs\app.fmx
    When accessing http://db1, the following error is returned:
    FRM-92130: Registry is either missing, or contains invalid, entry for Dispatcher...
    The error returned in Internet Explorer 7 is:
    java.lang.ClassFormatError: oracle/forms/engine/Main (Bad magic number)
    This also breaks the form URL.
    2. I also tried this at the end of httpd.conf:
    RewriteEngine On
    RewriteRule ^/(.*)$ http://db1/forms/frmservlet?form=C:\forms\execs\app.fmx
    When accessing http://db1, the server appears to be stuck in a loop. I think the problem is that the redirect is happening on all occurrences that contain "db1". So then a user enters http://db1, the redirection happens. But after the redirection, the new URL contains "db1" and the redirection happens again and keeps looping.
    Any help resolving this issue is greatly appreciated.
    -Al

    Summary:
    I fixed the "Bad magic number" error by modifying the client's JInitiator configuration to not use Browser Settings for Proxies.
    Issue:
    JInitiator running in Internet Explorer displays the following error: "java.lang.ClassFormatError: oracle/forms/engine/Main (Bad magic number)”
    Details:
    In my case, only external users connecting via a Proxy Server were having this issue.
    Solution:
    •     Open "JInitiator Control Panel":
    Start --> Settings --> Control Panel --> JInitiator 1.3.1.22
    •     Open [Proxies] tab; Uncheck the “Use Browser Settings” checkbox.

  • Help with entering a date in a form

    Not sure what's going on here, but its probably something simple, and me missing something obvious...
    Basically I have a form to add a record to a database table.
    I have two date fields in the table, of the type, Date.
    This is my code for adding the record :
    // Add columns
    $ins_clients->setTable("clients");
    $ins_clients->addColumn("name", "STRING_TYPE", "POST", "name");
    $ins_clients->addColumn("company", "STRING_TYPE", "POST", "company");
    $ins_clients->addColumn("website", "STRING_TYPE", "POST", "website");
    $ins_clients->addColumn("tel", "STRING_TYPE", "POST", "tel");
    $ins_clients->addColumn("mobile", "STRING_TYPE", "POST", "mobile");
    $ins_clients->addColumn("email", "STRING_TYPE", "POST", "email");
    $ins_clients->addColumn("enquirydate", "DATE_TYPE", "POST", "enquirydate");
    $ins_clients->addColumn("business", "STRING_TYPE", "POST", "business");
    $ins_clients->addColumn("future", "STRING_TYPE", "POST", "future");
    $ins_clients->addColumn("potential", "STRING_TYPE", "POST", "potential");
    $ins_clients->addColumn("callback", "DATE_TYPE", "POST", "callback");
    $ins_clients->addColumn("notes", "STRING_TYPE", "POST", "notes");
    $ins_clients->setPrimaryKey("ID", "NUMERIC_TYPE");
    And these are the form fields for the dates :
    <input type="text" name="enquirydate" id="enquirydate" value="<?php echo KT_formatDate($row_rsclients['enquirydate']); ?>" size="32" />
    <input type="text" name="callback" id="callback" value="<?php echo KT_formatDate($row_rsclients['callback']); ?>" size="32" />
    All of which seems about right.
    But even when I enter dates in the format 2010-09-23, all that's being written back to the database is 0000-00-00.
    Any ideas where I'm going wrong?
    Thanks.

    I've never seen the method you're using to modify a table before, so I can only add some speculation.
    I'm not familiar with the commands that you're using but it looks like you're trying to create a new table instead of adding a record to a table and that would explain why the database isn't returning the values you're intending - I could be wrong though .
    Are you using a MySQL database? If so, try using a different method to add information to the database and see if that leads to some successful results.
    Use this method to create a table.
    Use this method to insert information into a table.
    Good luck!

  • Help with inserting pages into a PDF form

    Hi everyone,
    I used LiveCycle Designer ES for the first time to make a fillable PDF form.  The form works splendidly, but the users wish to insert PDF pages to the end of the form before submitting (using Acrobat).
    I can't figure out how to allow this to happen.
    I open the form I made in Acrobat 9.0 and the Insert Pages tab is greyed out.
    I went back to LC and set form options to "Allow all changs except extract" and this seems to have done nothing.
    When I look at the security settings in Adobe and click on Permissions Details, I see two different things.  In Docmuent Security, the security method is set as Password Security and if I open Show Details It says changing the Document is allowed.
    But in the Document Restrictions Summary, changing the Document is set at Not allowed.
    Probably a newbie question, but I am stumped.
    Thanks,
    Becky

    Hey there,
    If you've created a dynamic form, then the PDF document is no loger an acroform, it's an XFA form. I might be wrong, but I'm fairly certain that XFA forms can't have their pages extracted or have pages added via Acrobat.
    If that is the case (I'm fairly certain it is) then you have a few options:
    1) Redesign the form in Acrobat, losing the dynamic functionality.
    2) Create the form in Livecycle, and include the hidden subform that is shown on submit or button press (this would require you to know what the users want added, it would also require that the thing they're adding is always the same)
    3) Install a virtual printer, get them to fill out the dynamic form, then 'print' the via the dynamic printer.
    Personally, I'd go with option 3. A virtual printer is a program that prints the current document to a file, instead of an actual printer. 'Cute PDF Writer' is a virtual printer that is able to 'print' any document to a new pdf document. The new form will not be dynamic, and the fields are made read-only (hense why they should fill it out before printing it), but you will be able to insert pages.
    If you would like feel free to send me a message with any questions regarding cutepdf writer.
    - Scott
    P.S. CutePDF Writer also has the advantage of being free, well-supported, and just plain awesome. =P I would suggest getting it, even if you don't need it to resolve this issue. I use it all the time.

  • Need help with PayPal for a conference Registration Form

    I created a conference registration page and enabled PayPal.  I tested it with no issues.
    My client distributed the URL, and two people tried to register today, one of whom was my client.  She called me to say she never got a confirmation email and that when she entered her AMEX information, and hit the pay button, the message she got back was "Done but with Errors."
    Both people show up on my view responses report, but there are no values in the last three columns, which indicates an issue with PayPal.  When I check PayPal, there is no recent activity in my account.
    I need help resolving this ASAP.  Tech support couldn't help, he promised to escalate my case (#183366842) and have someone call me back within an hour.
    Is this forum monitored by FormsCentral staff who might be able to help?
    Thanks!
    Paula

    We're following up with PayPal and the [email protected] offline.

  • Need help with required fields for my online form

    Hi, I've been mucking around with my online form for a while
    and I just can't see what the problem is in the code.
    I am trying to make all but two of the form items to be
    required upon form validation. However, it doesn't work, nothing is
    required now.
    I'm using these two ways of doing it (natemail.php is my form
    handler).
    <form action="../NateMail.php" method="post"
    enctype="application/x-www-form-urlencoded" id="Man Meets Woman
    Long Form Opt-in"
    onsubmit="MM_validateFormMM_validateForm("date","first_name","last_name","alias","address ","city","prov_state","postal","country","phone","email","birthdate","Sex","marital_status ","other_forums","methods_known","want_learn","coaching","invite_friends","about_myself"," terms_conditions");return
    document.MM_returnValue">
    ...is one way and the other is:
    <input name="require" type="hidden" id="require"
    value="date,first_name,last_name,alias,address,city,prov_state,postal,country,phone,email ,birthdate,Sex,marital_status,other_forums,methods_known,want_learn,coaching,invite_friend s,about_myself,terms_conditions"
    />
    The page is
    http://www.vancouversocialboard.com/register.html
    Can anyone tell me my error and tell me the proper way to do
    this?
    Thank you!

    > (never did figure out what the 'MM_validateForm code was
    supposed to be)
    It's a call to a Dreamweaver javascript function that
    validates your form.
    The function definition should be in the head of the page.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "audio90" <[email protected]> wrote in
    message
    news:ghsljj$4ll$[email protected]..
    >
    quote:
    Originally posted by:
    Newsgroup User
    > On first glance, the problem seems to be that both the
    onsubmit event
    > and the JavaScript function inside are encapsulated with
    double quotes.
    > Try wrapping the onsubmit attribute/event in single
    quotes instead, like:
    >
    >
    >
    onsubmit='MM_validateFormMM_validateForm("date","first_name","last_name","alias"
    >
    ,"address","city","prov_state","postal","country","phone","email","birthdate","S
    >
    ex","marital_status","other_forums","methods_known","want_learn","coaching","inv
    > ite_friends","about_myself","terms_conditions");return
    > document.MM_returnValue'
    >
    >
    > [snip]
    >
    >
    >
    > No, it didn't work. But I solved it to be acceptable. I
    removed the
    > 'MM_validateForm and used the Natemail action. My
    mistake there was that I
    > put
    > "require" rather than "required". It comes up with a
    different screen when
    > form
    > items are missing, rather than a pop up video, but good
    enough.
    >
    > thanks
    >
    > (never did figure out what the 'MM_validateForm code was
    supposed to be)
    >
    >
    >

  • Help with Cascading Select List in Tabular Form

    Hello Friends,
    I am trying to implement Denes Kubicek's sample for Cascading Select list and ran into this error:
    Please help me identify what I might have missed ???
    <code>
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Only one top level element is allowed in an XML document. Error processing resource 'http://apex.oracle.com/pls/apex/f?p=12...
    <select><option value="0">- Select Employee (0) -</option></select><html lang="en-us" xmlns:htmld...
    </code>
    Please find below the list of activities I performed:
    1.Created the region source
    2.Created the hidden items
    3.Created the buttons and items
    4.Created the application process for MRU and Delete
    5.Created the Application item [ TAB_CASCADING_ITEM]
    6.Created the Application Process[tab_casc_sel_list]
    Any clue/pointers to debug this are welcome.
    I tried the above on apex.oracle.com; WS: CHAITANYAPATCHIPULUSU; USERNAME :[email protected]
    PWD:Satya123 in APPLICATION : 12855 and Page :35
    Regards..

    OK, you didn't have the background process as an on demand process.
    In the MRU and MRD process, you were referencing the wrong variables for the count. (as in deb's case, it's p176, but in your case its p35).
    In the javascript function, the call that is supposed to assign : TAB_CASCADING_ITEM a value, isn't working (I believe).

  • Need help with numbers adding instantly in fillable form

    I am doing a fillable form in acrobat where certain text boxes are being added to one another based on the users answers. It is basically a checklist for life insurance. Only problem I am having is certain numbers from equations aren't being added to my total instantly. You have to click on another box before it will do the addition. Other boxes that don't use a calculation add in instantly. Any idea how to fix or get around this???? Thanks for any assistance you can provide!

    Thanks for the reply! I was able to reset the field calculation order
    but have one field that is not populating right away and I have
    changed it's order everywhere?

  • Need Help with SSCC-18 Barcode in Smart Forms...

    Hi...
    Using new Smart Forms barcode...
    Need to create a SSCC-18 Serial Container Shipping Code format barcode...
    It is currently printing OK as a UCC-128 format... but... when it it is read by a scanner... they say it is missing the SSCC-18 "Start code Start A character and Function code 1"... that identify it as an SSCC-18 format...
    Suggestions ?
    Thank you,
    Dave...

    Issue is resolved...
    In the System Bar Code being used...
    ...changed the Code128 Mode parameter to a 'U' from an 'A'
    The scanner now recognizes the bar code as an SSCC-18 format.
    Dave T.

  • Need help with PHP contact form

    Hi guys,
    I've made a PHP contact form for my site and need help with a couple of things:
    The form action links an external PHP script (scripts/contact-form-script.php) but is there a way I can have it so the PHP script for the form is contained within the same PHP file as my contact form (contact.php)?
    I tried just putting the form code at the top of contact.php but the browser automatically reads the anti-spam re-direct, so maybe that needs revising too?
    The second thing is, how can I make the Name, Email and Message fields mandatory? So if a user tries to submit the form and hasn't filled in one of the required fields and clicks submit, contact.php reloads with a message at the top of the form saying something like 'Complete the required fields' and highlights the relevant field with a red border?
    Here's the code for contact.php:
    <form action="http://www.mydomain.com/scripts/contact-form-script.php" method="post" name="contact" id="contact">
    <p><strong>Name:*</strong><br />
    <input name="name" type="text" class="ctextField" /></p>
    <p><strong>E-mail:*</strong><br />
    <input name="email" type="text" class="ctextField" /></p>
    <p><strong>Telephone:</strong><br />
    <input name="telephone" type="text" class="ctextField" /></p>
    <p><strong>Company:</strong><br />
    <input name="company" type="text" class="ctextField" /></p>
    <p><strong>Address:</strong><br />
    <input name="address1" type="text" class="ctextField" /></p>
    <p><input name="address2" type="text" class="ctextField" /></p>
    <p><strong>Town:</strong><br />
    <input name="town" type="text" class="ctextField" /></p>
    <p><strong>County:</strong><br />
    <input name="county" type="text" class="ctextField" /></p>
    p><strong>Postcode:</strong><br />
    <input name="postcode" type="text" class="ctextField" /></p>
    <p><strong>Message:*</strong><br />
    <textarea name="message" cols="55" rows="8" class="ctextField"></textarea></p>
    <p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    And this is the PHP I'm using to submit the form data for contact-form-script.php:
    <?php
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $to = "[email protected]";
    $subject = "Contact from website";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
            $message= '
                <table cellspacing="0" cellpadding="8" border="0" width="500">
                <tr>
                    <td colspan="2"></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td width="154" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Name</strong></td>
                  <td width="314" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$name.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>E-mail address:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$email.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Telephone number:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$telephone.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Company:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$company.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Address</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address1.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address2.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Town</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$town.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>County</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$county.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Postcode</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$postcode.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                    <td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Message</strong></td>
                </tr>              
                <tr bgcolor="#eeeeee">
                    <td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$message.'</td>
                </tr>              
                <tr><td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
             </table>
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mydomain.com/sent.php' ) ;
    ?>
    Any help on this would be greatly appreciated.
    Thank you and I hope to hear from you!
    SM

    Revised code with form validation for Name Email and Message:
    <?php
    if (array_key_exists('submit', $_POST)) {
        $name = $_POST['name'];
        $email = $_POST['email'];
        $telephone = $_POST['telephone'];
        $company = $_POST['company'];
        $address1 = $_POST['address1'];
        $address2 = $_POST['address2'];
        $town = $_POST['town'];
        $county = $_POST['county'];
        $postcode = $_POST['postcode'];
        $formMessage = $_POST['message'];
    if (empty($name)) {
                                                $warning['name'] = "Please provide your name";
    if (empty($email)) {
                                                $warning['email'] = "Please provide your email";
    if (empty($formMessage)) {
                                                $warning['message'] = "Please provide your message";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $to = "[email protected]";
    $subject = "Contact from website";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
            $message= "
    <table cellspacing='0' cellpadding='8' border='0' width='500'>
                <tr>
                    <td colspan='2'></td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td width='154' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Name</strong></td>
                  <td width='314' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$name."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>E-mail address:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$email."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Telephone number:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$telephone."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Company:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$company."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Address</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address1."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address2."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Town</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$town."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>County</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$county."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Postcode</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$postcode."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                    <td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Message</strong></td>
                </tr>              
                <tr bgcolor='#eeeeee'>
                    <td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$formMessage."</td>
                </tr>              
                <tr><td colspan='2' style='padding: 0px;'><img src='images/whitespace.gif' alt='' width='100%' height='1' /></td></tr>
             </table>
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    if (!isset($warning)) {
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mydomain.com/sent.php' ) ;
    ?>
    <!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>Untitled Document</title>
    <style type="text/css">
    p {
        margin: 0;
        padding: 10px 0 0 0;
    .warning {
        color:#C00;
    </style>
    </head>
    <body>
    <form action="" method="post" name="contact" id="contact">
    <p><strong>Name:*</strong><br />
    <input name="name" <?php if (isset($warning['name'])) { echo "style='border: 1px solid #C00'"; } ?> type="text" class="ctextField" />
    <?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['name']."</p>"; }?>
    </p>
    <p><strong>E-mail:*</strong><br />
    <input name="email" <?php if (isset($warning['email'])) { echo "style='border: 1px solid #C00'"; } ?>type="text" class="ctextField" />
    <?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['email']."</p>"; }?>
    </p>
    <p><strong>Telephone:</strong><br />
    <input name="telephone" type="text" class="ctextField" /></p>
    <p><strong>Company:</strong><br />
    <input name="company" type="text" class="ctextField" /></p>
    <p><strong>Address:</strong><br />
    <input name="address1" type="text" class="ctextField" /></p>
    <p><input name="address2" type="text" class="ctextField" /></p>
    <p><strong>Town:</strong><br />
    <input name="town" type="text" class="ctextField" /></p>
    <p><strong>County:</strong><br />
    <input name="county" type="text" class="ctextField" /></p>
    <p><strong>Postcode:</strong><br />
    <input name="postcode" type="text" class="ctextField" /></p>
    <p><strong>Message:*</strong><br />
    <?php if (isset($warning['message'])) { echo "<p class='warning'>".$warning['message']."</p>"; }?>
    <textarea name="message" <?php if (isset($warning['message'])) { echo "style='border: 1px solid #C00'"; } ?> cols="55" rows="8" class="ctextField"></textarea></p>
    <p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    </body>
    </html>

Maybe you are looking for

  • Mass price change

    hi , Is there any Std T.code to do Mass price Change of Materials ? regards Mike

  • Material Document number

    Hi MM Gurus,            Is it possible to allocate Material and Accounting Document Ranges of Goods receipt plantwise? Kindly give your valuable inputs. Ex: Plant 1 :  5000000000 to 5000010000 Plant 2 :  5000010001 to 5000020000 etc. Regards Yoga

  • Importing Lotus Notes .NSF files into iPhone

    Does anyone know how to import LN .NSF files into the iPhone?

  • Maximum Render Quality

    Is it true that the only time to use Maximum Render Quality on exporting is if you are scaling footage?  If the size of your footage does not change on export there is really no reason to use this option.  Is this correct?

  • Help with combination of Ring,Control and String Indicator

    I have a simple task to perform, but I do not know if it is possible or not. I have the list of names in a ring, and I have a digital control that I want to change for each person. The names and person must be displayed on a string. I have attached a