Adding a refernce number to a form

Hi Folks,
I have a form on my website which acts as a questionanire. As
the data is purely qualitative I've not set it up to insert the
data into a databse, only to forward it via a formail page to my
email address. I would however like to add sequential reference
number to every form. It's all set up in PHP with a MYSQL databse
tie dinto oter parts of the site, so I could use a table to hold
teh reference number if necessary, although I don't really need the
number for anything more than to distinguish one email from another
when they're piled up onmy desk.
My guess is that I need to ctreate a table to hold the number
then use that number as a hidden field which will be submitted with
the form then somehow (and this is the bit I'm not sure about) add
1 to the refence number in the databse table when the submit button
is clicked.
Can anyone suggest a better way or help me with the code to
add to the submit button which will increment the database number?
Cheers
Dave

Use a simple page counter like some might use to count
visitors.
No need to create a database table just to get a unique id.
Unfortunately I'm a ASP developer so can't help with PHP, but
I'm sure there
are plenty out there.
Just append the counter variable to your e-mail and you're
done.
"mac-in-the-mountains" <[email protected]>
wrote in message
news:eqc8ab$f26$[email protected]..
> Hi Folks,
>
> I have a form on my website which acts as a
questionanire. As the data is
> purely qualitative I've not set it up to insert the data
into a databse,
> only
> to forward it via a formail page to my email address. I
would however
> like to
> add sequential reference number to every form. It's all
set up in PHP
> with a
> MYSQL databse tie dinto oter parts of the site, so I
could use a table to
> hold
> teh reference number if necessary, although I don't
really need the number
> for
> anything more than to distinguish one email from another
when they're
> piled up
> onmy desk.
>
> My guess is that I need to ctreate a table to hold the
number then use
> that
> number as a hidden field which will be submitted with
the form then
> somehow
> (and this is the bit I'm not sure about) add 1 to the
refence number in
> the
> databse table when the submit button is clicked.
>
> Can anyone suggest a better way or help me with the code
to add to the
> submit
> button which will increment the database number?
>
> Cheers
>
> Dave
>

Similar Messages

  • Adding a reference number to form central

    Hi, I need to be able to add an auto generated reference number to specific forms.

    Hi,
    If you’re a form author, you will seeing the auto-generated a reference numbers in response table, along with add rows manually or submitted responses. but  these reference numbers is unable to copy. you might be copy a reference numbers from excel , and paste them to your specific forms or tables.
    Thanks,
    Guanshuai

  • BP refernce number in outgoing payment's line detail

    Hi,
    When AP does an outgoing payment in SAP (Banking -> outgoing payment -> outgoing payment) on the line where we need to see which supplier invoices to pay and we need to see the vendor refernce number because all of our work revolves around the suppliers invoice number not the internal SAP invoice number. We need to be sure when we are choosing many invoices that they are choosing the right supplier one. I tried form settings and it does not have that option (display both of the internal SAP B1 invoice document number and BP reference #)
    Thanks!
    Lan
    Edited by: ZHANGLAN on Jul 15, 2010 4:13 PM
    Edited by: ZHANGLAN on Jul 15, 2010 4:13 PM

    Hi Gordon,
    Actually this is what i am thinking right now to use UDF, my idea is to create a UDF and copy the BP ref # to UDF and put this UDF in the matrix(or grid). But the problem is i tried creating the UDF in both marketing document title and marketing document rows, but i can't see my UDF in the form setting -> table format or row format. From my understanding, the BP ref # should be in marketing document title(master data). Is anything wrong when i create the UDF?
    Thanks!
    Lan

  • To get the contact fax number in my form

    Hi!
    I would like to get the fax number on the customer section of my smartform for BOL. How do i get the contact fax number in my form with following lines that i ahve for getting contact name.
    data: l_parnr like vbpa-parnr,
          l_name1 like knvk-name1,
          l_namev like knvk-namev. "first name
    select parnr into l_parnr from
           vbpa
           where
           vbeln = g_sale_ord and
    *      vbeln = is_nast-objky and
           parvw = 'AP'.
           exit.
    endselect.
    if l_parnr is not initial.
       select single name1 namev  into (l_name1, l_namev)
          from knvk
          where
           parnr = l_parnr.
       concatenate l_namev l_name1 into g_contact separated by ' '.
    endif.
    Thanks

    I added this and it shows up the fax number:
    data: l_parnr like vbpa-parnr,
          l_name1 like knvk-name1,
          l_namev like knvk-namev, "first name
          l_kunnr like vbpa-kunnr,
          l_persnumber like adcp-persnumber,
          l_fax_number like adcp-fax_number,
          l_vbelv like vbfa-vbelv.
    select parnr into l_parnr from
           vbpa
           where
           vbeln = g_sale_ord and
    *      vbeln = is_nast-objky and
           parvw = 'AP'.
           exit.
    endselect.
    if l_parnr is not initial.
       select single name1 namev  into (l_name1, l_namev)
          from knvk
          where
           parnr = l_parnr.
       concatenate l_namev l_name1 into g_contact separated by ' '.
    endif.
    select vbelv into l_vbelv from vbfa where
    vbeln = gs_hd_adr-deliv_numb and
    vbtyp_n = 'J' and
    vbtyp_v = 'C'.
      exit.
    endselect.
    select single parnr from vbpa into l_parnr
    where vbeln eq l_vbelv
    and parvw eq 'AP'.
    if sy-subrc eq 0.
      select single * from knvk into g_knvk where
      parnr = l_parnr.
      select single fax_number into g_contact_fax
      from adcp
      where persnumber = g_knvk-prsnr.
    else.
      select single kunnr from vbpa into l_kunnr
      where vbeln eq gs_hd_adr-deliv_numb
      and   parvw eq 'AG'.  "sold to
      if sy-subrc <> 0.
    *from ship to
        select single kunnr from vbpa into l_kunnr
        where vbeln eq gs_hd_adr-deliv_numb
        and   parvw eq 'WE'.  "ship to
      endif.
      check sy-subrc = 0.
      select single * from knvk into g_knvk where
      kunnr = l_kunnr and
      abtnr = 'Z007'.
      select single fax_number into g_contact_fax
      from adcp
      where
      persnumber = g_knvk-prsnr.
    endif.
    Thanks

  • Adding new Batch Number to AP Invoice

    i am working on adding new batch number to an existing AP IN by SDK function. I try the following codes, no errors prompt but also nothing updated. Can anyone advise me how to add new batch number to AP Invoice? Many Thanks!
    Dim ErrMsg As String
    Dim ErrCode As Integer
    Dim opch As SAPbobsCOM.Documents
    opch = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
    opch.GetByKey(5)
    opch.Lines.BatchNumbers.Add()
    opch.Lines.BatchNumbers.BatchNumber = "3"
    opch.Lines.BatchNumbers.Quantity = 3
    ret = opch.Update
    If ret <> 0 Then
          oCompany.GetLastError(ErrCode, ErrMsg)
          MsgBox(ErrCode & " " & ErrMsg)
    End If

    Hi ,
    Steps to do:
    1.Create an User Defined Field on Document Row Level:
    Name: Serial / Batch Details
    Type: Alphanumeric
    Structure: Text
    - Create a Formatted Search which will populate the data from Delivery note.
    - Put the UDF into the Print Layout of Delivery Order.
    Displaying Batch Details
    2.   Decide with information is needed from Batch details to be printed out on A/R Invoice
    On Bacth Details form (Inventory\Item Management\Batches\Batch Details) we can see all the possible details.
    - Batch Number
    - Delivered Quantity
    - Expiration Date
    3.    Build the formatted search SQL command.
    By a SQL cursor driven result set we can build a text which contains the list of the delivered batch details separated by new lines. The relations between A/R Invoice and Delivery note is defined on A/R Invoice Form. in columns 45, 46, and 43 
    declare @batch as nvarchar(100)
    declare @txt nvarchar(max)
    set @txt = ''
    declare P cursor for SELECT T0.[BatchNum] + space(1)
      + cast(cast(T1.[Quantity] as decimal(19,2)) as nvarchar)
      + space(1) + case when T0.[ExpDate] is null then '' else convert(nvarchar,T0.[ExpDate],102) end
      FROM OIBT T0 INNER JOIN IBT1 T1 ON T0.ItemCode = T1.ItemCode and T0.WhsCode = T1.WhsCode
      and T0.BatchNUm = T1.BatchNum
      WHERE T1.[BaseEntry] =$[$38.45.0] and T1.[BaseLinNum] =$[$38.46.0]
    open P
    fetch next from P into @batch
    while @@fetch_status = 0
    begin
    set @txt = @txt '\n'@batch +','
    fetch next from P into @batch
    end
    close P
    deallocate P
    select @txt
    4. Defined the formatted search on the A/R Invoice.

  • Need to Find Total number of InfoPart form in our Web application

    Hello,
    We have to find total number of Infopath forms in our web application. IS there any Power sheell Scripts or anuthing which can output the Infopath Forms location and file count .
    Thanks
    Kundan

    How about something like:
    Get-SPWebApplication http://yourWebAppUrl |
    Get-SPSite -Limit All |
    Get-SPWeb -Limit All |
    Select -ExpandProperty Lists |
    Where { $_.GetType().Name -eq "SPDocumentLibrary" -AND -NOT $_.Hidden } |
    Select -ExpandProperty Items |
    Where { $_.Name -LIKE "*.xsn" }
    Select {$_.Web.Url}, Url
    The above will list all of the files. Do you need counts by library, by site or other?
    Mike Smith TechTrainingNotes.blogspot.com

  • How can multiple check boxes be added at one time to a form?

    How can multiple check boxes be added at one time to a form?

    Thanks for your response, but copying and pasting creates a link. If the user places a check mark in one of the boxes, all the rest of the boxes will have a check mark also. I will research this some more.
    Carol Deatherage
    Receptionist
    Novar/Honeywell
    1000 SE 14th Street
    Bentonville, AR 72712
    Office:  (800) 341-7795
    Fax: (479) 271-0657
    [email protected]<mailto:[email protected]>
    Your feedback is important to us! Please take a moment to rate this response.
    Click Here to Access the Survey<https://www.surveymonkey.com/s/NovarSurvey>!
    This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately.
    Novar Confidential ***

  • Any1 aware of a function module to convert a number in exponential form

    any1 aware of a function module to convert a number in exponential form to normal form...
    eg... a no. like 8.00000000000004E-01 
                     8.88888888888884E-01
    and
    a no. like 1.50000000000000E+00 
               9.44444444444442E-01

    I think you can just move from type F to type p.
    p =  f .
    Regards,
    Rich Heilman

  • Help- I have added a field in my tabular form and now i get an error in mul

    Help- I have added a field in my tabular form and now i get an error in muli update form; Here is the error, how do I go in to change the process, adding the extra field??
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "F10F6D7EC4CF938382C6DC2EE22800F6", item checksum = "90E47F32E95B71B7A9D47A1311063445"., update "CAPRS"."CONTRACT_ERRORS" set "ID" = :b1, "CONTR_NUM" = :b2, "REPT_MONTH_CD" = :b3, "REPT_FISCAL_YEAR" = :b4, "REPORT_FAC_CAGE_CD" = :b5, "END_ITEM_NUM" = :b6, "END_ITEM_DESC" = :b7, "WSSC" = :b8, "WBS_CD" = :b9, "WPC_CD" = :b10, "CONTR_CLIN" = :b11, "CO
         Error      Unable to process update.

    Hi,
    I believe the error is due to the checksum process which doesn't have that additinoal field's information. You can try creating the form again with the additional field, or if needed you can go with the Manual tabular form.
    Thanks,
    Manish

  • Ways to get the line number in sapscript form?

    Hi, all.
    May I know whether that there are ways to get the line number in sapscript form?
    For example, I want to get to know the certain line number in the MAIN window.
    Thanks in advance.

    Thanks Naimesh Patel  .
    Is there anyway to get the PENDING_LINES  value in the script?
    Because i can't modify the standard print program, i can only edit the Sapscript Form and add in some extra subroutine only.
    tnx.

  • Number of "Draft Forms" showing in Licensing Adobe Document Services, why?

    Hi Friends,
    I can see following details under the services -->Document Services License Service  in VA of ADS Server.
    Number of SAP Forms : 0
    Number of Customer Forms : 0
    Number of Draft forms: 3 <-----only showing.
    so where is the setting ? How to convert it customer Forms. why it is showing as Draft forms? any idea???
    Thanks
    Ali

    Hi R.A.,
    Forms are classified and displayed as:
    ● Customer Forms, the total number of your forms.
    ● SAP Forms, the total number of original SAP forms.
    ● Draft Forms, the total number of forms in a draft state. Draft forms are forms that are not currently in production and therefore do not count as a licensed/unlicensed form.
    Have a look at this link on ADS Configuration guide.
    http://help.sap.com/saphelp_nw70/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frameset.htm
    Go to section Licensing Adobe Document Services, in this you will get more information.
    Regards,
    Vinod

  • Page number in adobe form

    when the form execution goes to 2nd page it displays a page number on right potion lil below top margin..
    can some body tell me where the setting is for that pageno.. like sy-pagno or any thing like that..
    reminding you it doesnt show that page number on the form when it is a one page output. only for >2 pages it shoes...the page number.

    solved

  • TS4079 Siri used to work fine when making mobile calls in Ecuador until yesterday, when the administration of Ecuador added an aditional number in all mobile numbers existing in Ecuador. Since then Siri is unable to make any mobile calls with any new numb

    Siri used to work fine when making mobile calls in Ecuador until yesterday, when the administration of Ecuador added an aditional number in all mobile numbers existing in Ecuador. Since then Siri is unable to make any mobile calls with any new number.Help
    I`ve tried restarting, rebooting, nothing works.
    The interesting thing is that SIRI can call to previous mobile numbers (without the new digit) obviously not connecting , and, can call to any other numbers as an office or home number. So the problem is the new digit in the mobile number

    Ecuador has added an extra digit to mobile phone numbers but apple wont accept 10 digit phone numbers so we cant use facetime or apple IM or verify our new phone numbers. ( and Siri won't work either!) I have contacted apple support online but can't request a call back as the apple system says our new phone numbers are invalid. I am going to phone them tomorrow and you should complain too at http://www.apple.com/support/contact/.  . The more people that bring this to their attention the faster it will get fixed

  • Print a number variable as a real number without approximation forms

    Dear all
    I want to pront my variable number without approximation forms, here is my output problem:
    SQL> select imsi from table where num like '393';
    number
    *2.2202E+14*
    I want that the output will display as a real nyumber without approximation.
    Regards
    Ali

    chg78 wrote:
    yes, and it is working for me, i am using SQL DEVELOPER,
    how can i paste the result?
    CAST(2.2202E+14ASNUMBER(38,2))
    222020000000000
    All you're doing is turning a number specified in scientific notation to a number i.e. doing nothing.
    Just to prove it, if you look at the underlying datatypes:
    SQL> ed
    Wrote file afiedt.buf
      1  select dump(2.2202E+14)
      2        ,dump(cast(2.2202E+14 as number(38,2)))
      3* from dual
    SQL> /
    DUMP(2.2202E+14)
    DUMP(CAST(2.2202E+14ASNUMBER(38,2)))
    Typ=2 Len=4: 200,3,23,3
    Typ=2 Len=4: 200,3,23,3Both the original number and the CAST'd number produce identical results.
    The difference is that your SQL Developer environment isn't set up to display large numbers in scientific notation, but displays it as a full number.
    The issue the OP was having was that querying a number in the SQL*Plus environment (as indicated by the "SQL>") a full number was being displayed as the short hand scientific notation.
    Edited by: BluShadow on 16-Mar-2011 11:30
    to add the proof of cast making no difference.

  • I added a custom field into my form in BC but it wont render.

    I added a custom field into my form on BC but I cannot get it to show up whhen I preview it. Does anyone know why this is happening?

    Check out this http://ellenmemorialhcc.businesscatalyst.com/contact-us.html  In this site I am just trying to add a 4 checkboxes. I have tried previewing it and everything and it will not make the changes. How do i get these checkboxes to show up on my site. I found where in business catalyst to access them and I enabled those features in BC but i cannot figure out how to get this to show up live on my business catalyst site.

Maybe you are looking for

  • IPod seen by windows, not by iTunes+ weird error message

    I have a first generation 2GB iPod nano and i use windows xp. I can't load any music because iTunes doesn't see my iPod and an error message pops up that reads like this: "iTunes: iTunes.exe corrupt file. The file or directory \iPod_Control\iTunes is

  • I need help finding or creating a script to automatically create iCal email and message reminders. iCal

    Dear All, I'm learning to use iCal v.5.0.3 on a Mac Pro (2,1) 2x3 Ghz Quad-Core Intel Xeon, running Lion OSX10.7.5. I need to find or write a script which, when I create a new iCal timed event, will automatically send me an email and give a screen al

  • Subcontracting with the finished material to be given to the customer

    dear all, I want to implement a scenario, in which i want do subcontracting. the material shall not be given by me but shall be ordered to another vendor who shall give it to the subcontractor, the subcontractor shall give the finished product to the

  • KVM that supports 30 Cinnema

    Hi, I have a power macintosh G5 quad with a 30" HD cinnema display, but virtual pc is not cutting it for some applications, so I need to use a KVM switch between my mac and eMachine computer. Any advise to which KVM that will support a 30 HD Cinnema

  • Setting the bullet in list tag

    Hi, I have some problems with the bullet in a html list (<li> tag). I have a multi language application and in the chinese font "ms_song" the bullet is not displayed correctly. Can I set the bullet via css? Can I even set it as Bitmap? Or can I set i