CDONTS Form Mail question - help needed

I have a form on my asp page called MyMail.asp. The form is
linked to cdonts.asp_form.asp which sends an email of filled in
text boxes and comboboxes to my email address.
It works fine when all the fields (eight of them) are filled
in, but doesnt send the email if any of the textboxes are left
blank. How can I make it send the email if some of the textboxes
are blank? I have downloaded Yaromat, but it only seems to make
fields become "required". I want to be able to send the email with
say 3 of the eight fields filled out - ie not all of them are
compulsary.
Regards
Billy

Here is the code -
Firstly the form itself (mymail.asp) -
<form action="/cdonts_form.asp" method="post"
name="MyForm" id="MyForm">
<table width="200" border="1" align="center"
bordercolor="#999999" bgcolor="#CCCCCC">
<tr>
<td>Title</td>
<td><select name="MyTitle" id="MyTitle">
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Miss">Miss</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
<option value="Please Select" selected>Please
Select</option>
</select></td>
</tr>
<tr>
<td>First Name </td>
<td><input name="firstname" type="text"
id="firstname2" size="30"></td>
</tr>
<tr>
<td>Last Name </td>
<td><input name="lastname" type="text"
id="lastname2" size="30"></td>
</tr>
<tr>
<td valign="top">Address</td>
<td><textarea name="MyAddress" cols="28" rows="6"
id="MyAddress"></textarea></td>
</tr>
<tr>
<td>Email Address </td>
<td><input name="email" type="text" id="email3"
size="30"></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Telephone</td>
<td><input name="MyTelephone" type="text"
id="MyTelephone"></td>
</tr>
<tr>
<td>Mobile Phone </td>
<td><input name="MyMobile" type="text"
id="MyMobile"></td>
</tr>
<tr>
<td>Where did you hear about us?</td>
<td>red
<input name="colour1" type="checkbox" id="colour12"
value="red">
blue
<input name="colour2" type="checkbox" id="colour22"
value="blue">
green
<input name="colour3" type="checkbox" id="colour32"
value="green"></td>
</tr>
<tr>
<td valign="top"><p>Enquiry /
Comments</p></td>
<td><textarea name="comments" cols="28" rows="6"
wrap="VIRTUAL" id="textarea"></textarea></td>
</tr>
<tr>
<td> </td>
<td><select name="test" id="select">
<option value="test1">test1</option>
<option value="test2">test2</option>
<option value="test3">test3</option>
</select></td>
</tr>
<tr>
<td> </td>
<td><input name="send" type="submit" id="send"
value="Submit Form"></td>
</tr>
</table>
</form>
Next the code from the cdonts_form.asp page (the page which
will send the email) -
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Dim MyMail
Dim MyBody
Dim MyEmail
Dim MyFirstname
Dim MyLastname
Dim MyColour1
Dim MyColour2
Dim MyColour3
Dim MyComments
Dim MyTest
Dim MyTitle
Dim MyAddress
Dim MyTelephone
Dim MyMobile
MyEmail = Request.Form("email")
MyFirstname = Request.Form("firstname")
MyLastname = Request.Form("lastname")
MyColour1 = Request.Form("colour1")
MyColour2 = Request.Form("colour2")
MyColour3 = Request.Form("colour3")
MyComments = Request.Form("comments")
MyTest = Request.Form("test")
MyTitle = Request.Form("MyTitle")
MyAddress = Request.Form("MyAddress")
MyTelephone = Request.Form("MyTelephone")
MyMobile = Request.Form("MyMobile")
MyBody = "First Name: "& MyFirstName & vbcrlf
MyBody = MyBody & "Last Name: "& MyLastName &
vbcrlf & vbcrlf
MyBody = MyBody & "Email: "& MyEmail & vbcrlf
MyBody = MyBody & "Colour 1: "& MyColour1 &
vbcrlf
MyBody = MyBody & "Colour 2: "& MyColour2 &
vbcrlf
MyBody = MyBody & "Colour 3: "& MyColour3 &
vbcrlf & vbcrlf
MyBody = MyBody & "Comments:" & vbcrlf
MyBody = MyBody & MyComments & vbcrlf & vbcrlf
'vbcrlf - Visual Basic Carriage Return Line Feed means leave a
space!
MyBody = MyBody & "Test:"& vbcrlf
MyBody = MyBody & MyTest & vbcrlf & vbcrlf
MyBody = MyBody & "Title: "& MyTitle & vbcrlf
MyBody = MyBody & "Address: "& MyAddress & vbcrlf
MyBody = MyBody & "Telephone: "& MyTelephone &
vbcrlf
MyBody = MyBody & "Mobile Number: "& MyMobile &
Vbcrlf
Set MyMail = Server.CreateObject ("CDONTS.NewMail")
MyMail.From = MyEmail
MyMail.To = "t**********@*******.com"
MyMail.Subject = "Enquiry for Academy Of Counsellors - sent
from website"
MyMail.Body = MyBody
MyMail.Send
set MyMail=nothing
Response.Write("Thankyou, Your e-mail has been sent")
%>
Hope this is helpful for you!!
Regards
Billy

Similar Messages

  • About Java 2 opaque font color question, help needed!

    About Java 2 opaque font color question, help needed!
    I was trying to test opaque font (the string has a foreground color and a background color), but i can't find the method for doing that.
    i can change foreground by Graphics2D.setPaint(Color.black).
    Anybody know how to change the background of the string?
    Thanks!

    Hi. The way I'd do it would be to use the font metrics to find the length of a string and draw a rectangle and then drawstring over the rectangle. If you want an example, I can post it although I suspect theres a better way.

  • Order Form Processing - Urgent help needed

    Hi All,
    I am in deep trouble trying to sort this out. Please help me get out of this as soon as possible. I am using JSP, MySQL and Tomcat for development of my company's web site. I have a dealer section where dealers can login and place orders online. Given this scenario following are my worries.
    Suppose all the entries in the form are OK and the form is submitted following has to happen.
    The entry goes to the Order table with status as NEW. This happens and works fine now.
    A copy of acknowledgement is mailed to the dealer. Also possible with JavaMail.
    The order acknowledgement letter is printed automatically without any human intervention. i.e. window.print() method is not to be used.
    Or simply put the user has to click a single button and all these 3 actions should take place, he should not be made to click "Send Message" or "Print" > OK.
    Please anybody and everybody who can help reply.
    Rgds,
    REDAM

    I can help u for sending acknowledgement on clicking submit button.
    u add following code in ur form and ucan send the mail.
    But other things are not clear pl. make them clear,
    Bye
    Samir
    //put mail api and set the classpath, if u need help write again
    <%@ page import="java.awt.*,java.util.*, javax.mail.*, javax.mail.internet.*" %>//import these
    Properties props = new Properties();
    props.put("mail.smtp.host", "urmailserver");//add here ur mail server ip aa 198.1.1.xx or name
    Session s = Session.getInstance(props,null);
         /*String      NAME=request.getParameter("NAME");
         String      COMMANDO=request.getParameter("COMMANDO");
         String      GGBS=request.getParameter("GGBS");
         String      ADDRESS=request.getParameter("ADDRESS");
         //String      NAME=request.getParameter("NAME");
         ///String      NAME=request.getParameter("NAME");*/ change it according to ur need
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress("[email protected]");
    message.setFrom(from);
    InternetAddress to = new InternetAddress("[email protected]");
    message.addRecipient(Message.RecipientType.TO, to);
    message.setSubject("Test from JavaMail.");
    message.setText("Order from * "+DEL_NAME+ " *\n\n "+"Commando Quantity= "+COMMANDO_QTY+"\n\n "+"GGBS Quantity= "+GGBS_QTY+"\n\n "+"Delivery At # "+REC_ADDR1+"\n"+REC_ADDR2+" #\n\n ");//change this to ur need
    Transport.send(message);
         response.sendRedirect("/indorama/jsp/orderconfirm.jsp");

  • Few Questions (Help Needed)

    Hi,
    I had few questions regarding captivate 4. If anyone can help, I would really appreciate it:
    1) I created an eLearning project and it has some quiz sildes in them. So how do I collect the scores of the users who will go though that eLearning? ( I googled it but in most of the webpages they say just put a tick on report answers and also in the preferences enable reporting for this project) I tried using that but can`t see how to fetch the score for each users.
    2) In the same eLearning I want to get feedback from the users who watch the eLearning. So basically I want a slide in which users can type in their feedback and then when they hit the submit button that feedback should be sent to a specific email. ( For this I tried using text box entry but all the text we enter in that comes in one line, we can`t press enter to change lines, also in the button I assign it to send an email to my lotus notes email id, but when I preview the project and click the button, it opens my lotus notes and it does not fetches what I have entered in the text box)
    http://stevehoward999.wordpress.com/about/#comment-270

    Hi there
    You need to be investigating another piece of software that works in conjunction with applications like Adobe Captivate. Generically it is known as a LMS (Learning Management System).
    There are tons of them out there. You might begin by looking at the link below:
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • New to Pages, mail merge help needed

    OK, I tried to get some help a couple of days ago in the Numbers discussion pages but apparently the invoice I'm trying to create won't work. (At least, no one has replied to the other post.)
    So I've given up on trying to create a usable Invoice in Numbers ('09) for my friend's graphic design business and am now trying to use the Invoice template in Pages ('09) instead.
    I've managed to insert Mail Merge fields in the document and link them to a stand-alone Numbers document containing the client addresses. However, when we open the template to try and create a new invoice, the Pages>Edit>Mail Merge option only allows us to select the table containing the addresses, not individual addresses. The result is that Pages only imports the first person in from our database (the Numbers table).
    If anyone out there can offer help - even if it's just to say "forget it, you're better off writing things out by hand" - I'd really appreciate it.
    Another issue for the Invoice I'm trying to do in Pages is use the Inspector to create a Pop-up cell.  Apparently, that is only an option in Numbers.  But if I can get some help on the first issue, I figure something else out.
    I won't bother posting a screenshot or anything unless someone really needs it. (Maybe that's why I didn't get help before...)

    Thank you for the reply - the video was very helpful!
    AnaMusic wrote:
    Perhaps this  >  http://macmost.com/using-mail-merge-in-pages.html
    can offer some assistance on Mail Merge...
    I can now get the Mail Merge to pull up separate pages in a document for everyone on the list.
    I did some more checking on the MacMost site, but didn't find an answer for the next part of my problem:
    Being able to select different people from the Numbers table before completing the Mail Merge. Since we haven't yet entered her full client list into the database, I can simply delete an invoice that doesn't apply from the resulting mail merged document. My worry is in having to do that once we have her full client list (about 200 names so far) in that database.
    I've tried to see if it made sense to break the list into separate groupings, but even an alphabetical grouping (A-G, H--N, etc.) seems odd. I know I was able to make selections when I used Microsoft Word mail merge - do you know if Pages has something similar? (I know, Pages isn't meant to be an Apple clone of Word, but it's hard to know if I'm just looking in the wrong place on the forums and in the manuals/user guides.)
    Thank you again!

  • Adobe Lightroom 4 - Some Questions / Help Needed

    Hi everyone.
    After advice from several experts, I've just purchased Adobe Lightroom 4. I've already got Photoshop CS5, but I was looking for something proper to organise my photos, plus I found Lightroom easier to do the sort of editing I am wanting to do. Now, I only really use photoshop for things like colour pops, or really in-depth editing. Anyway, I'm loving Lightroom so far, but there is some stuff I'm not very sure of, so I'd appreciate some help
    1. Organising
    Firstly, I'm not really sure how to organise. At the moment, I've just got lots of folders with random events in My Pictures on W7, so I might have a folder called April 11, which contains photos from that month but that might have been a wedding or an easter holiday or both. So it doesn't really work. \
    I understand in Lightroom what catalogs are. But I know enough to know that I don't want to group mine into those, its getting too complicated. What I don't know though is the difference between a collection and a folder. Basically, I'm wanting to reimport and reorganise all my photos, so I want to put them into "events" as such like you can do on iPhoto on a mac, so I would have "France Summer Holiday 11" for example, or "Mia's Wedding". I'm not really sure on the best way to do this ...?
    2. Editing
    I've played around quite a bit so far, and I really like what I've seen. On a lot of photos, I've made a lot of changes. But from what I can see, these changes are stored merely in Lightroom itself. For example, at the moment I'm importing photos from my external disk into Lightroom, which then saves them in C://My Pictures/Lightroom/Pictures . When I go look at these photos in windows explorer which I know I have edited, it doesn't show any of the changes or editing I've done on them. Now I realise this is me being stupid, but why doesn't it? Supposing I then want to email that photo to a friend that I have edited? How would I do that? I don't want to have to open lightroom and export every single photo I edit? There must be a simpler way?
    Likewise for backing up, because all my files are in subfolders within C:// My pictures / Lightroom / Pictures, to back up I was simply going to set up windows to copy that latter folder onto my external HDD everytime I plugged it in. This would be pointless however if it isn't physically overwriting the original photo with my edited version?
    3. Editing 2
    Something else I like to do is make lots of different edits to the same photo. For example, at the moment I'm editing a photo of a pier at night. I spent ages adjusting colours and lighting and so on, and now it looks great. But I would also like to save a copy of that photo with the "old age photo" effect preset on. Is this possible? and how do I do it? Other than obviously importing a duplicate?
    4. & 5. & 6 - Misc:
    4. Simple question - how do I add tags, keywords or comments if I haven't done it on import?
    5. My camera doesn't have built in GPS. Is it possible for me to manually geotag photos (in a batch, say for a Summer Holiday to NY), could I manually add a geotag for all these photos?
    6. I also forgot to add copyright information on import for some, is it possible to do this after import and how?
    7. I normally shoot in JPEG. I probably shoot shoot in RAW as everyone tells me to do so. Are there any significant advantages in terms of quality, and for editing with?
    Thanks for any help given. I appreciate this is a lot of questions, but I could really use the advice.

    Hi William,
    1. Organising
    Firstly, I'm not really sure how to organise. At the moment, I've just got lots of folders with random events in My Pictures on W7, so I might have a folder called April 11, which contains photos from that month but that might have been a wedding or an easter holiday or both. So it doesn't really work. \
    I understand in Lightroom what catalogs are. But I know enough to know that I don't want to group mine into those, its getting too complicated. What I don't know though is the difference between a collection and a folder. Basically, I'm wanting to reimport and reorganise all my photos, so I want to put them into "events" as such like you can do on iPhoto on a mac, so I would have "France Summer Holiday 11" for example, or "Mia's Wedding". I'm not really sure on the best way to do this ...?
    I am not so sure if you understand *catalogs*.
    You need a catalog, exactly 1 in my opinion. A catalog is a database. The Lightroom database, where records about your images are stored, including the pointers to your images, which are not inside a catalog! LR backups just does the backup of the catalog (i.e. a file ending .lrcat). You need to take care separately that your real images are backed up !
    Inside your LR database the best way to organize is via collections - this will give you what you want with "France summer holiday 11" etc.
    Folders are relatively unimportant, just storage buckets. They should be *handy portions*, I would prefer them with below 3000 images each, as there currently some bugs to those bigger ones.
    Before you start with LR, you can organize your pictures in Mac Finder / WindowsExplorer.
    Or you could do it with the help of LR, by copying your images over during import into the destination folders (and deleting today's folders afterwards after having verified that everything is fine).
    A simple date-based structure will do, I'd recommend  a root parent folder like "LR images", underneath one folder per year (\2010\, \2011\, \2012\...) and underneath them either
    just one folder per month (LR can auto-create them for you)
    or you create the folders in import dialog as e.g. "YYYY-MM-DD description of shoot", to have a mini-diary overview also in your OS.
    Apart from that you create collections, either *dumb ones*, where you drag images into, or smart ones, where you specify criteria according to which they get auto-filled.
    2. Editing
    I've played around quite a bit so far, and I really like what I've seen. On a lot of photos, I've made a lot of changes. But from what I can see, these changes are stored merely in Lightroom itself. For example, at the moment I'm importing photos from my external disk into Lightroom, which then saves them in C://My Pictures/Lightroom/Pictures . When I go look at these photos in windows explorer which I know I have edited, it doesn't show any of the changes or editing I've done on them. Now I realise this is me being stupid, but why doesn't it? Supposing I then want to email that photo to a friend that I have edited? How would I do that? I don't want to have to open lightroom and export every single photo I edit? There must be a simpler way?
    Likewise for backing up, because all my files are in subfolders within C:// My pictures / Lightroom / Pictures, to back up I was simply going to set up windows to copy that latter folder onto my external HDD everytime I plugged it in. This would be pointless however if it isn't physically overwriting the original photo with my edited version?
    LR will never overwrite your original photos.
    You can save most of the catalog content into the xmp-part of the original photo, which is either a sidecar-file (.xmp) or part of the file format, like for DNG, TIFF, PSD, JPG. To do so you select the image in LR and hit <ctrl> s. Or you set it up for continuous update, which creates a lot of operations while you play back and forth in develop.
    I do that on my own, typically twice per file: once I am done with develop, once I am done with keywording and other metadata update.
    LR contains records about your images, i.e. a set of instructions how they are to be interpreted. That is all.
    So of course you need LR to export the result of these instructions, which is actually pretty quick.
    To backup your images you need to do that just once, plus you backup your LR catalog. Or if you save xmp to the files, you can do another backup once xmp is ready.
    I would not consider this pointless. You just have to think that there are 2 places with data for your images: the images themselves and a database with interpretation instructions.
    3. Editing 2
    Something else I like to do is make lots of different edits to the same photo. For example, at the moment I'm editing a photo of a pier at night. I spent ages adjusting colours and lighting and so on, and now it looks great. But I would also like to save a copy of that photo with the "old age photo" effect preset on. Is this possible? and how do I do it? Other than obviously importing a duplicate?
    Yes, this is one of LR's beauties: you create a so-called *virtual copy*, which is just a 2nd record for the same original image file with different interpretation settings, like black-and-white, a different crop size, different development etc. You can have as many virtual copies as you like, and you'll see them as additional thumbnails.
    Virtual copies are not saveable into xmp, though. There is another concept which is saveable into xmp: snapshots. but these are different states in develop history, and you do not see outside develop module that you have several.
    If you export virtual copies e.g. to jpg one file per virutal copy will be created.
    4. & 5. & 6 - Misc:
    4. Simple question - how do I add tags, keywords or comments if I haven't done it on import?
    5. My camera doesn't have built in GPS. Is it possible for me to manually geotag photos (in a batch, say for a Summer Holiday to NY), could I manually add a geotag for all these photos?
    6. I also forgot to add copyright information on import for some, is it possible to do this after import and how?
    7. I normally shoot in JPEG. I probably shoot shoot in RAW as everyone tells me to do so. Are there any significant advantages in terms of quality, and for editing with?
    Thanks for any help given. I appreciate this is a lot of questions, but I could really use the advice.
    ad 4: you use the library module, metadata panel to enter.
    ad 5: you use the map module. Either you manually drop your images on a map, or you have a separate GPS track to load and have LR assign via matching time-stamps.
    ad 6: like 4
    ad 7: You don't need JPG from your camera, you can achieve better results viy LR from RAW. Yes, there are significant advantages as to editing headroom.
    Overall, may I suggest my favorite learning material for LR? First watch Julieanne's Tutorial Videos.
    Then go play and use Victoria Bampton's eBook or paper copy of her "Missing FAQs to LR4": http://www.lightroomqueen.com/books/adobe-lightroom-4-missing-faq/
    Have fun,
    Cornelia

  • PDF form field calculation help needed

    I need to make some simple calculations on a pdf form and need some help.
    I have a form field for number of guests.
    A field for a set cost for various tickets (there are 3 levels of ticket prices) (I might not need this field).
    A subtotal of the guests attending and ticket price.
    A grand total of the subtotals.
    I can't figure out how to either put in a fixed cost in a form field or input a calculation so that the number of tickets is muliplied by a fixed number and gives me a subtotal.
    Thanks.

    Ok. I finally got the calculations to work. But..... when I save and open in Reader, they don't work. Go back to Pro, they don't work there now either. They also don't show up under the Set Field Order Calculations. To reset them, i have to erase the calculations, save, redo the calculations. Preview the form and everything works — calculations happen and i get a total.
    Adobe Reader usage rights are enabled.
    Why is this so hard?
    I found this thread http://forums.adobe.com/message/1152890#1152890 about it. Is this bug still going on since 2009?
    Ok. Apparently you have to enable reader rights after the form is done. It seems to work now. What a pain.

  • PDF form javascript time help needed

    I am creating a fillable form using time formats and I need help with 2 parts. First part is at the top. I would like the total time to display in hours. It should take total loaded departed minus total loaded arrived time and total it into the first Total Time box as hours but I can only get it to display as a number. Every time I tried to format it as a time it would give me an error.
    Second part I need help with is down toward the bottom. It's called 030-LOAD DELAY. This will also display as a time format. It will take that top Loaded Time Total and subtract an hour. How do I do that?
    I have been googling for hours and hours on this. There's so many ways to do this but every time I try different ways, it doesn't work and I end up confusing myself even more.
    (and btw, I'm using acrobat version 9)

    Ok. I finally got the calculations to work. But..... when I save and open in Reader, they don't work. Go back to Pro, they don't work there now either. They also don't show up under the Set Field Order Calculations. To reset them, i have to erase the calculations, save, redo the calculations. Preview the form and everything works — calculations happen and i get a total.
    Adobe Reader usage rights are enabled.
    Why is this so hard?
    I found this thread http://forums.adobe.com/message/1152890#1152890 about it. Is this bug still going on since 2009?
    Ok. Apparently you have to enable reader rights after the form is done. It seems to work now. What a pain.

  • Oracle forms installation - some help need

    I am trying to install Oracle forms - but get the follwing message:
    Checking swap space: 576 MB available, 1535 MB required. Failed <<<<
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,at which time they will be rechecked.
    Continue? (y/n) [n]
    actually - I have no choice to choose y and try what's going on - so - is this means that I shoul add some 1.5 GB of RAM to my computer? (I have already 700MB, only 300 of them are used)? I am using WinXP, free HD is above 3.5 GB, 2.4GHz processor.
    Can I try to find some workaround - e.g. simply try to copy jar's from 'stage' (direcotry in installation disk) in Oracle application server's lib directory (where it is in Oracle_Home directory?)?
    Any experience with installing Oracle forms?
    This was trying to run setup.exe, but when I am trying to run wsf.exe - I get:
    SEVERE: Unable to locate the MDAC Update Status registry key value, probably because the installation was aborted.
    MDAC possibly stands for Microsoft Data Access Components? If so - where is problem - I can run a lot of DB servers, including Oracle server itself normally?
    BTW - is there any free service available for Oracle Forms skills development (e.g. as for Oracle SQL the Intel test drive is available?)
    user454720

    OK - now I increased the max limit of my page file and now I achieved this:
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be 5.0, 5.1 or 5.2 . Actual 5.1
    Passed
    Checking monitor: must be configured to display at least 256 colors . Actual
    4294967296 Passed
    Checking swap space: must be greater than 1535 MB . Actual 1600MB Passed
    Checking Temp space: must be greater than 150 MB . Actual 1942 MB Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from C:\DOCUME~1\ADMINI~1\LOCALS
    ~1\Temp\OraInstall2006-03-18_01-57-43PM. Please wait ...
    however - after this I receive the standard messgae:
    'setup.exe has encountered a problem and need to close. we are sorry for the inconvenience..... Please tell Microsoft about thsi problem'
    actually - I have little ideas what to do further - maybe I should look for other Oracle Installer version? I am using:
    Oracle Universal Installer version: 10.1.0.2.0
    and I am trying to install
    Oracle Deveoper Suite: 10.1.2.0.2 (so - a bit higher)
    I can run OUI without any problems, my Default JRE is 1.5_1 - so - all seems to be OK?
    Please - if any idea - help me :))
    Thanks in advance!

  • Stupid Java Question (Help Needed!!!)

    I have a piece of Java Code that dynamically builds a SQL statement (including VARCHAR2 columns). Oracle gives an error if my string has a single quote in it. I need to replace each single quote with two single quotes in Java, i.e. I need a Java equivalent of PL/SQL REPLACE function.
    Java str.replace only replaces an individual character (see below).
    String l_str = "O'Hara";
    String l_str2 = l_str.replace('\'', '\'');
    I need to replace "O'Hara" with "O''Hara". Any help is appreciated

    Please don't post same question on both forums.
    Please find the answer at:
    Re: ORA-09004

  • Web forms issue clashed - help needed!

    hello experts,
    i need an urgent as my website is now live, its beyond post-deadline. So I know a kind helpful solution to my problem. Ok here's the thing. I am unable to upload two webform in a single page. If i do add several web form into one page, the email notification won’t work. in other words, i will not receive any enquiries from customers. why is it not possible? i need to add different  web form to different pricing option. please check out what i mean at my photography webpage at http://www.purpleperfect.com/wedding-offer-pricing.html
    please help me resolve this issue, thank you in advance.

    i guess that makes sense.... at least i need to add a second form at the bottom of the page, right on "click here". 
    btw, i have tested the forms, and it works fine. but if i add two different forms from bc into a single page, none of the forms will work within that page. i had this issue previously with my client website, but i never needed two webforms in a single page until today. do help me out.

  • Consolidating a poor "Contact us" form from AS1 help needed.

    I've found that the contact form functionality is spread over two symbols a few layers, and a few clips.  I'll do my best to define what and where, as well as the AS code behinf it in a top down manner.
    Symbol: "p4_tblock2" (movie clip) with three objects below it.
        " Layer 11 : Frame 1"     (two frames)
         "Layer 12 : Frame 2 "    (two frames)
          "Message"  Movieclip    (one frame)
              Message on frame one contains the text boxes to be filled in as well as a couple of movie clip buttons which are in the second part of all this
              Layer 12 frame 2 holds the thank you note once the sequence is advanced when the "submit" (movieclip button) is selected.  The other movieclip button "clear" resets the form.
              Layer 11...I'm not sure as I can turn it on and off and not see anything happen.  Also, the two frame icons are different then the others below it (the icons actually IN the timeline.
    Message has this asssociated AS
    onClipEvent(data){
    // show thank you screen
    this.nextFrame();
    The other symbol. "message" Three items below it, and four layers
              "Frame"  (one frame)
              "rd1"  (one frame) movie clip as a button
              "rd1:  (one frame) movie clip as a button
    The two rd1 movie clips hold the AS for the send and clear movieclip buttons.
    At this point I'm not to concerned with the code as KGLAD has been very helpfull.  I just don't think this needs to be spread out so much.
    I've done my best to describe what is going on, but it makes my head spin just trying to follow it.
    The idea is to have the buttons animate when the mouse passes over them, receive user input from four text boxes, and then send or clear the form to start over.
    Thanks

    Sure - here it is:
    <!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" />
    </head>
    <body>
    </body>
    </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sendemail Script</title>
    </head>
    <body>
    <!-- Reminder: Add the link for the 'next page' (at the bottom) -->
    <!-- Reminder: Change 'YourEmail' to Your real email -->
    <?php
    $ip = $_POST['ip'];
    $httpref = $_POST['httpref'];
    $httpagent = $_POST['httpagent'];
    $visitor = $_POST['visitor'];
    $visitormail = $_POST['visitormail'];
    $notes = $_POST['notes'];
    $attn = $_POST['attn'];
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Feedback was NOT submitted</h2>\n";
    echo $badinput;
    die ("Go back! ! ");
    if(empty($visitor) || empty($visitormail) || empty($notes )) {
    echo "<h2>Use Back - fill in all fields</h2>\n";
    die ("Use back! ! ");
    $todayis = date("l, F j, Y, g:i a") ;
    $attn = $attn ;
    $subject = $attn;
    $notes = stripcslashes($notes);
    $message = " $todayis [EST] \n
    From: $visitor ($visitormail)\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    $from = "From: $visitormail\r\n";
    mail("[email protected]", $subject, $message, $from);
    ?>
    <p align="center">
    Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
    <br />
    Attention: <?php echo $attn ?>
    <br />
    Message:<br />
    <?php $notesout = str_replace("\r", "<br/>", $notes);
    echo $notesout; ?>
    <br />
    <?php echo $ip ?>
    <br /><br />
    <a href="thankyou.html"> Next Page </a>
    </p>
    </body>
    </html>
    Thank you!

  • Web Form Editor - basic help needed!

    I must be the world's dumbest designer. I am trying to create a contact form in Business Catalyst to be placed in Muse. Now, I use Muse because I know very little about coding, so that is probably why I am struggling so bad creating this form. Typically, I use the form building widget in Muse to create my forms, but my client would like to include a dropdown list and an "add file" function to the form. I have watched a couple videos on youtube on how to set up a form, but I am getting hung up on the formatting. The form technically has everything I need, but it is horribly ugly! I have tried using the "Customize Web Form" option within BC (as well as the Style Builder), but nothing I do makes any difference.
    See for yourself:
    THis is what the form looks like in Muse. I manually added the blue box in Muse. There are so many things wrong I don't know where to start! The form fields are too small, I can't change the font or color and I want to get rid of the Title. I have tried playing with the code, but nothing works. Is there a tutorial somewhere teaching us how to edit a form using the built in web form editor?
    Thank you so much for your help!

    You need to assign a class to each input element and then target those classes with CSS.
    Example:
    <input type="text" name="FirstName" id="FirstName" class="cat_textbox" maxlength="255">
    CSS:
    .cat_textbox {
    width: 300px;
    height: 25px;
    border-radius: 3px;
    box-shadow: inset 1px 1px 2px 0 #DADADA;
    -webkit-box-shadow: inset 1px 1px 2px 0 #DADADA;
    border-color: #B6B6B6;
    border-style: solid;
    border-width: 1px;
    I can help you out more in a few hours. I highly recommend learning as much CSS & HTML as you can.
    -Ryan

  • Beginner Question - Help Needed for EJB QL Sample Application

    I'm working with a group of student interns, like myself, and we've been given an assignment to work with Oracle. All of us have no training or experience with this, so we're just learning as we go.
    I've been trying to run the EJB QL Sample Application (http://www.oracle.com/technology/sample_code/tech/java/ejb_corba/ejbql/Install.html), but I keep running into problems at step 3.
    Now, we will deploy the sample application onto OC4J. Open another command prompt and go to the folder <OC4J_HOME>/j2ee/home and run the following commands one-by-one
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -deploy -file <SAMPLE_HOME>/build/ejbql.ear -deploymentName Ejbql
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -bindWebApp Ejbql ejbql-war http-web-site /ejbql
    where,
    <machine_name>      Name of the machine where OC4J Server is running
    <admin_port>      Admin Port on which the OC4J server listens. This value by default is 23791 unless explicitly changed by the user
    <admin_pwd>      Adminstrator password to access OC4J. The default value is welcome
    When I do this step I get this error:
    Error: Unable to find java:comp/ServerAdministrator: Lookup error: javax.naming.
    AuthenticationException: Invalid username/password for default (sds); nested exc
    eption is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    com.evermind.client.orion.AdminCommandException: Unable to find java:comp/Server
    Administrator: Lookup error: javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:105)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException
    : Invalid username/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds) [Root exception is javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds)]
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Caused by: javax.naming.AuthenticationException: Invalid username/password for d
    efault (sds)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    ... 2 more
    ---- Embedded exception
    javax.naming.AuthenticationException: Invalid username/password for default (sds
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Any suggestions to fix this error?
    Thanks in advance for any help.

    George,
    The Readme.html file is available with the ejbqlsample.jar downloadable (Extract and find the doc in Ejbql\docs\Readme.html) which is printable.
    Or,
    If you are trying to print the file directly from OTN site, you need to set the Page-Setup Orientation to 'Landscape'.
    Hope this helps.
    Regards
    Pushkala

  • SAP MM questions- help needed

    Please can I get an expert's help in findig a solution to the following questions:
    1 To view the most up to date planning data (available stock, orders, reservations, etc.) on a material, use the:
    (more than one answer can be correct)
    A Stock Overview report.
    B List display of material and accounting documents.
    C MRP list.
    D Stock Requirement list.
    E Standard Analysis for a material
    2 A material forecast can be used by the following MRP types:
    (Only one answer is correct)
    A Manual Reorder point planning.
    B Automatic reorder point planning.
    C Forecast based planning.check
    D Time phased planning.
    E Storage location MRP
    3 Materials planning can be set to automatically generate:
    (more than one answer can be correct)
    A Contracts.
    B Purchase Requisitions.
    C Purchase Orders.
    D Planned Orders.
    E Delivery Schedules.
    4 The following are lot sizing rules available for SAP R/3:
    (more than one answer can be correct)
    A Fixed lot size.
    B Replenish to maximum stock level.
    C Weekly lot size.
    D Daily lot size.
    E Economic order quantity.
    5 Which of the following apply to Purchase Orders?
    (more than one answer can be correct)
    A The vendor must be specified in the Purchase Order Header.
    B All materials on a purchase order must be procured through the same purchasing group.
    C All materials on a purchase order must be of the same material group.
    D Discounts and surcharges can be maintained in the document header.
    E Discounts and surcharges can be maintained at line item level.
    6 Which of the following is an Account Assignment category?
    (more than one answer can be correct)
    A Material Group.
    B Purchase Requisition.
    C Sales Order.
    D Release Code.
    E G/L Account
    7 Which of the following are Item Categories?
    (more than one answer can be correct)
    A Consignment.
    B Service.
    C Manufacturing.
    D Cost Centre.
    E Subcontracting.
    8. Which of the following documents can be subject to release (approval) procedure?
    (more than one answer can be correct)
    A Planned Order.
    B Purchase Requisition.
    C Scheduling Agreement.
    D Purchase Order.
    E RFQ.
    9 In Source lists the following can be sources of supply:
    (more than one answer can be correct)
    A Vendor.
    B Contract.
    C Scheduling Agreement.
    D Quotation.
    E Quota Arrangement.
    10 Which of the following document types can appear in the purchase order history for a purchase order line item?
    (more than one answer can be correct)
    A Another purchase order.
    B A goods receipt material document.
    C A service entry sheet.
    D An invoice.
    E A release procedure.
    11. Which of the following stock types can be counted through Physical Inventory procedure?
    (more than one answer can be correct)
    A Unrestricted use stock.
    B Block stock.
    C Quality Inspection stock.
    D Vendor consignment stock.
    E In-transit stock.
    12 Which of the following cab possibly influence the valuation price of a moving average priced material?
    (more than one answer can be correct)
    A Goods receipt for a purchase order.
    B Goods Issue to a cost centre.
    C Invoice verification against a purchase order.
    D Stock transfer between two storage locations in the same plant.
    E Transfer posting from unrestricted use stock to quality inspection.
    13. In the SAP system a user can operate in the following hierarchies.
    (more than one answer can be correct)
    A Service level.
    B Application level.
    C Main menu level.
    D Month.
    E Total stock value.
    14 Your planning department is using a Forecast Model for materials planning. It has been established that while demand for the particular material is projected to increase steadily as market share is increased, the fluctuating tourist demand will affect the overall requirements. Which forecast model will best address this requirement?
    (Only one answer is correct)
    A The Constant model.
    B The Constant trend model.
    C The Seasonal trend model.
    D The Fluctuating trend model.
    E The Seasonal model.
    15. In the SAP system, the reference document used in the purchasing cycle is the:
    (Only one answer is correct)
    A Purchase requisition.
    B Info record.
    C Source list.
    D Purchase Order.
    E None of the above.
    True / False
    16 What purpose does invoice verification serve in materials management?
    a It allows invoice that do not originate in materials procurement to be processed.
    b Completes the materials procurement process
    c Handles the payment
    d Allows credit memos to be processed
    e Handles the analyses of invoices.  
    17 What are the tasks of invoice verification?
    a Entering invoices and credit memos received.
    b Checking the accuracy of invoices
    c Executing the account posting resulting from invoice
    d Updating open items and material prices
    e Checking invoices that were blocked.
    18 What is the process of invoice verification?
    a Purchase order, service or GR referenced for incoming invoice.
    b Invoice items suggested by the system against referenced document
    c Corresponding automatic account postings carried out.
    d Payment proposal list for vendor generated.
    19 From where does the system pick the default quantity of an item when you post invoice receipt?
    a Invoice
    b Purchase order
    c Purchase order history
    d System settings
    e Vendor master
    20 During invoice verification the system picks the rate at which tax is calculated from the vendor master record.
    TRUE
    FALSE
    Regards
    VS

    Hi Vishal,
    Here are the answers.
    1. C, D
    2. C
    3. B, D, E
    4. A,B,C,D
    5. A, B, D, E
    6. C
    7. A, B, E
    8. B, C, D, E
    9. A, B, C
    10. B, C, D
    11. A, B, C
    12. A, C
    13. E
    14. A
    15. A
    True / False
    16. B, C, D, E
    17. A, B, C, E
    18. A, B, D
    19. C
    20. False
    Hope this helps.
    Thanks,
    Viswanath

Maybe you are looking for