In desperate help with Dreamweaver Forms

I am looking to create a textfield within my form for viewers to enter a certain phrase or code to enable them to view my next page on my website. In other words, I am creating a simple game on dreamweaver were viewers have to enter a code within a textfield in order to view the next page once submitted. How can I tell dreamweaver what the word or code is for viewers to enter?? This code would have to be entered correctly, otherwise they would not be able to view the lext page (level 2). I have tried using spry validation but cannot seem to figure it out. Please if someone can help me i would be very grateful.

php will do this quiet easily if you can use it? A simple example of the code/form is below:
Copy code and paste into a new Dreamwaever document and save it as next_level.php The page sends the information collected via the form back to itself. If the person enters the correct code in this case 12345 they get taken to www.bbc.co.uk if they enter the wrong code they get a failure message. You can alter all of the above i.e., code and url to go to in the code below.
You can either use this locally if you have php set up or upload it to your server if it runs php.
<?php
if (array_key_exists('sumbit', $_POST)) {
$code = $_POST['code'];
if ($code == "12345") {
header('Location: http://www.bbc.co.uk');
else {
$responseMessage = "Sorry, the code you entered is incorrect!";
?>
<!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>
</head>
<body>
<form id="checkCode" name="checkCode" method="post" action="next_level.php">
<label>Code
<input type="text" name="code" id="code" />
</label>
<label>Submit
<input type="submit" name="sumbit" id="sumbit" value="Submit" />
</label>
</form>
<?php
if (isset($responseMessage)) {
    echo $responseMessage;
?>
</body>
</html>

Similar Messages

  • Help with Dreamweaver Forms

    I have tried to find this information and no one seems to be
    able to help me (including Adobe Tech Support).
    What I am trying to do is create a form on a web site that
    has four categories...Year, Make, Model, Engine. It is kind of like
    what is on AutoTrader or KBB.
    These need to be linked...Year (i.e, 2007) would pull up all
    the makes made for that year. Make (i.e, Acura) would pull up all
    the models of that make for that year. Model (i.e., MDX) would pull
    up the engine types for that model, make, and year.
    Help me, please!!

    I've got an extension which will do two - linked make to
    model, for
    example, here:
    http://www.kaosweaver.com/extensions/details.php?id=88
    Paul Davis
    http://www.kaosweaver.com/
    Visit us for dozens of useful Dreamweaver Extensions.
    http://www.communitymx.com/
    Partner at Community MX - Extend your knowledge
    BPhilipson wrote:
    > I have tried to find this information and no one seems
    to be able to help me
    > (including Adobe Tech Support).
    >
    > What I am trying to do is create a form on a web site
    that has four
    > categories...Year, Make, Model, Engine. It is kind of
    like what is on
    > AutoTrader or KBB.
    >
    > These need to be linked...Year (i.e, 2007) would pull up
    all the makes made
    > for that year. Make (i.e, Acura) would pull up all the
    models of that make for
    > that year. Model (i.e., MDX) would pull up the engine
    types for that model,
    > make, and year.
    >
    > Help me, please!!
    >

  • Help With Registration Form

    Hi
    I have created a registration form, where on the first page
    the user enters a user name and password, then they go to the next
    page where they enter their name. This then goes to the next page
    where they enter their address, then there contact details.
    But I want all these details to go on to a page where they
    can review their details, then press a submit button which inserts
    the data into a mysql db.
    But I need help with how I do this?
    I have created the following Java script in the body. Or
    should it be in the header? Or on another form? to insert their
    details:-
    <% Insert Data %>
    <jrun:sql datasrc="regift">
    INSERT INTO account VALUES ('<%=
    request.getParameter("User_Name").trim() %>',
    '<%= request.getParameter("Password").trim() %>',
    INSERT INTO name VALUES ('<%=
    request.getParameter("First_Name").trim() %>',
    '<%= request.getParameter("Last_Name").trim() %>'
    INSERT INTO address VALUES ('<%=
    request.getParameter("House_Number").trim() %>',
    '<%= request.getParameter("Street").trim() %>',
    '<%= request.getParameter("Town").trim() %>',
    '<%= request.getParameter("County").trim() %>',
    '<%= request.getParameter("Postcode").trim() %>'
    INSERT INTO contact_details VALUES ('<%=
    request.getParameter("Email_Address").trim() %>',
    '<%= request.getParameter("Telephone_Number").trim()
    %>'
    </jrun:sql>
    Is this correct?
    Thanks for all your help, Lou.

    Your code is correct only for the first page. What you need
    to do after the
    initial record is entered is grab its ID and then on
    subsequent pages you
    would use and UPDATE sql statement
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "LoobieLouLou" <[email protected]> wrote in
    message
    news:emggvv$q67$[email protected]..
    > Hi
    >
    > I have created a registration form, where on the first
    page the user
    > enters a
    > user name and password, then they go to the next page
    where they enter
    > their
    > name. This then goes to the next page where they enter
    their address, then
    > there contact details.
    >
    > But I want all these details to go on to a page where
    they can review
    > their
    > details, then press a submit button which inserts the
    data into a mysql
    > db.
    >
    > But I need help with how I do this?
    >
    > I have created the following Java script in the body. Or
    should it be in
    > the
    > header? Or on another form? to insert their details:-
    >
    > <% Insert Data %>
    > <jrun:sql datasrc="regift">
    >
    > INSERT INTO account VALUES ('<%=
    request.getParameter("User_Name").trim()
    > %>',
    > '<%= request.getParameter("Password").trim() %>',
    >
    > INSERT INTO name VALUES ('<%=
    request.getParameter("First_Name").trim()
    > %>',
    > '<%= request.getParameter("Last_Name").trim() %>'
    >
    > INSERT INTO address VALUES ('<%=
    > request.getParameter("House_Number").trim()
    > %>',
    > '<%= request.getParameter("Street").trim() %>',
    > '<%= request.getParameter("Town").trim() %>',
    > '<%= request.getParameter("County").trim() %>',
    > '<%= request.getParameter("Postcode").trim() %>'
    >
    > INSERT INTO contact_details VALUES ('<%=
    > request.getParameter("Email_Address").trim() %>',
    > '<%= request.getParameter("Telephone_Number").trim()
    %>'
    > </jrun:sql>
    >
    > Is this correct?
    >
    > Thanks for all your help, Lou.
    >
    >

  • Need Help with Dreamweave MX!

    Hello all!
    I'm an artist and I'm putting my new website together but I'm
    stuck on something. I have 3 order forms that are all .doc files.
    How do I make a link in Dreamweaver so when the person clicks on
    the link... they download those forms? I did it once but it was a
    long time ago and I forgot how. Don't talk to me like I'm some kind
    of HTML expert. ;) I suck with HTML. If you can use simple easy
    instructions I'd appreciate it. :) I'm not very experienced with
    Dreamweaver.
    Thanks! :)

    Mahalo, Inali.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Inali Kealoha" <[email protected]> wrote in
    message
    news:ej5e0k$255$[email protected]..
    > lol Teasing is fine. :) Sometimes it's *REALLY* hard to
    tell online the
    > person's meaning without the use of emoticons. Either
    way, what Murray
    > said
    > worked great. It was so simple too and now I know how to
    do it from now
    > on.
    > I've only used Dreamweaver once before and only because
    the person who was
    > to
    > build my site was taking too long. I just decided I'd do
    it myself. :)
    >
    > Now it is completed! Well, except for the fact that
    while deleting my old
    > version of the site I think I accidentally deleted my
    entire coppermine
    > gallery
    > in the process. Oops. :( Oh well. Hopefully that can be
    fixed without too
    > much
    > work. Thanks for the help! :)
    >
    > Inali
    >
    http://www.spiritcreations.wulfpawz.net/
    >

  • Help with PDF form responses

    Hey there!
    I have two issues with online form data collection and am completely stumped. It's a real struggle to find useful documentation for Acrobat forms!
    #1 - I have created a form uploaded it to Acrobat.com, and have been able to collect test form data. In the local responses portfolio, I'm able to use the 'Update' button to bring the latest form data into the portfolio. But I would like to have a colleague be responsible for monitoring the form data and we're running into problems. He's able to open the portfolio and has full access, however the 'Update' button is greyed out so he is unable to bring in new form data. We've already updated his 'Acrobat.com' username/password in Acrobat preferences to match mine, but still no luck. Any help?
    #2 - Some computers are having issues with electronic submission. My best guess is that this is to do with Acrobat versions, as the issues all seem to come from computers where the form is completed using Acrobat Reader 8. The form was created with Pro 9, and form submission works for both Pro 9 and also Reader 9. Is there something I can do here? (And yes I know that it's a free upgrade to 9, but 8 is still in the official build for our organisation and I don't really have time to wait for them to complete an upgrade!)
    Thanks in advance for any help you can give.
    Jarrod

    Hello Paul,
    Thank you for your reply.
    I use Ipower for my hosting.  I see they use sendmail and the path on the server is - /usr/sbin/sendmail.  Would this work?
    The way I would like this to work would be:
    1) I e-mail the PDF form to the client
    2) Client opens and fills in the form
    3) They hit submit and the form information eventually gets e-mailed to my business e-mail
    I chose to use the HTTP method instead of e-mail because the PDF form says it can not be saved and if the client uses an internet beased e-mail like Yahoo it gets kind of messy.
    But, does the HTTP delivery method make it more difficult since this is not embedded in a website?
    Sorry, I did not realise this would be as involved as it is.  Your help would be greatly appreciated.

  • Livecycle design 8 Help with PDF forms

    I am new to Livecycle 8. I have created a simple PDF form in Livecycle 8 which was orignally an excel form. I set it up with a submit button to submit by email to a designated person. The form is housed on an internal web site for viewers with adobe reader to open and fill out and then submit by email. The goal is for the designated receiver to receive the the same PDF form with the information filled out by the previous viewer. I was successful with the form being emailed to the designated person as long as the peson submitting the form was using adobe professional. If the viewer only has adobe reader, the form would not submit to the designated receiver. Please help? 

    Reader does not allow a local save of the form and data by default. To be able to add the attachment o an email message a local save must occur. You can Reader Extend your form to allow for this. Open th eform in Acrobat Pro. Under the Advanced menu choose the "Extend Features in Adobe Reader". Follow the wizard and save the result PDF as a different name ....I like to put RE in the name so I know it is Reader Extended. Try the new file.
    paul

  • HELP With Dreamweaver Contact Page

    I what I want to do is once the user fills in the form like the attachment.  The user clicks the submit button and then a "contact us" webpage opens in the browser and their name and stuff populates a regular contact us webpage made like this http://dreamweaverspot.com/adobe-dreamweaver-tutorial-contact-forms/ is what I am following.  In the attachment have the user enter their name (John Doe) and click a done button and have John Doe appear on the Dreamweaver form.  Then use something like formmail.php so when the user clicks send email their info is already entered and all they have to do is click the button
    PDF File Here

    I don't use GoDaddy but the comments below the tutorial did seem to indicate that there were problems with email.
    GoDaddy is a very good registrar. I, personally would not recommend them for hosting, having on numerous occasions seen clients and potential clients with websites that did not load, loaded slowly, seemed to not work and so on. If they're limiting what you can do with php (or any server-side code) without making a clear alternative for you, then they're too limited to use for a website. And that comment is not aimed at GoDaddy, it's aimed at any web hosting provider that limits their clients in some way that makes websites not work.
    If you know ASP or ColdFusion a web host that does not provide that kind of support is not for you.
    I would mention that you can create a complete form without doing any programming for a web host that supports php on the formmailmaker.com website. You can also find good php code in all sorts of places that will make just about anything you need.
    And if you're still stuck, you can hire someone to do that kind of work.

  • Help in dreamweaver forms

    I am having a problem getting the return (back end) to work
    on my dreamweaver form. i know this is a simple task however for
    some reason i have a problem. i am trying to use form mail script
    but for some reason i keep getting errors.

    Hello,
    To get some help, you'll need to give a bit more information.
    Does the "back end" send an email, save information to a
    database or both
    and then redirect to another page or not?
    What isn't working?
    Are you getting an error message?
    What server side language are you using?
    What script are you using for the form action, whatever it
    is.
    Can you post a link to the page?
    Thanks,
    Tim
    "climaxprod" <[email protected]> wrote in
    message
    news:fv31qh$nrs$[email protected]..
    >I am having a problem getting the return (back end) to
    work on my
    >dreamweaver
    > form. i know this is a simple task however for some
    reason i have a
    > problem.
    > i am trying to use form mail script but for some reason
    i keep getting
    > errors.
    >
    >

  • Help with Parameter Form

    Hello, I have a somewhat complicated Report and I am hoping that I can create the Parameter Form in Reports (I would rather not use Forms because I don't know it as well)
    Here's my problem:
    Right now I have 2 fields that I need help with.
    The first one is called "Report Name" and I have it coded to a bind variable that will search for a series of "work units" such as 02% or 03%
    This works as coded, the problem comes with the other "Work Unit" field. What I have right now is a LOV that queries for work units that start in either 02 or 03. This variable will narrow down the report findings to the specific work unit selected. What I want is for this list to be dependant on what the user choses for report name.
    For example if the user choses ReportName1 the report query finds work units with 02%, but the "work unit" field still displays the list of work units 02% and 03% and the user must know to only chose the certain work units for the specific "Report Name" selected.
    If there is a way to somehow have the "Work Unit" field be dependant on the "Report Name" field please give me soem ideas of how to do it.

    Thats what I was worried about.
    Well I have been trying to learn forms for some time now but I can't quite get the hang of it yet.
    I don't really have anyone who knows it here, so I'm kind of learning on my own.
    Thanks for the response.
    Arin

  • HELP WITH A FORM

    Ok here is the problem,
    I am trying to make a form in my existing fla document and
    the form will not function.
    I have created the form and used the exact same php script in
    a seperate flash movie and the form worked fine but I can not get
    it to work in my existing fla.
    I would reall appreciate any help with this issue.....
    I need my file
    (download my file at
    http://66.70.213.43/testsite/main3.fla
    to have a working email submission form.
    this file has no working form on it now and the existing form
    can be modified but I would like to keep the submit and the reset
    buttons as is if possable.
    I would like to use the php email style that is in the lesson
    on gotoandlearn.com ( the lesson is listed as sending mail with php
    but I am willing to accept other methods if needed.
    The Movie clip symbol of the actual form with the submit and
    reset button is call P5_s7
    The Movie clip symbol of the page which contains the form is
    called PAGE 5
    I will edit the php and the flash script after you send the
    file to me to reflect the email addresses that I want to use so for
    testing purposes you can use any email that you want.
    I would really appreciate it if someone with more flash
    experience could help me out and post a working copy of my file and
    the php script that the form links to so that I could re download
    then.
    Thank you in advance
    Please note that there may be some $$$ in it for you if you
    can help me.......

    Don't think you're going to find anyone here who will just be
    willing to do the work for you. You might want to check out the
    Flash and PHP Integration sample file that comes with Flash 8 for
    some pointers on how to get this started.
    If you have specific questions later, write back! Good luck!

  • Help with Login Form (JSP DB Java Beans Session Tracking)

    Hi, I need some help with my login form.
    The design of my authetication system is as follows.
    1. Login.jsp sends login details to validation.jsp.
    2. Validation.jsp queries a DB against the parameters received.
    3. If the query result is good, I retrieve some information (login id, name, etc.) from the DB and store it into a Java Bean.
    4. The bean itself is referenced with the current session.
    5. Once all that's done, validation.jsp forwards to main.jsp.
    6. As a means to maintain state, I prefer to use url encoding instead of cookies for obvious reasons.I need some help from step 3 onwards please! Some code snippets will do as well!
    If you think this approach is not a good practice, pls let me know and advice on better practices!
    Thanks a lot!

    Alright,here is an example for you.
    Assume a case where you don't want to give access to any JSP View/HTML Page/Servlet/Backing Bean unless user logging system and let assume you are creating a View Object with the name.
    checkout an example (Assuming the filter is being applied to a pattern * which means when a resource is been accessed by webapplication using APP_URL the filter would be called)
    public doFilter(ServletRequest req,ServletResponse res,FilterChain chain){
         if(req instanceof HttpServletRequest){
                HttpServletRequest request = (HttpServletRequest) req;
                HttpSession session = request.getSession();
                String username = request.getParameter("username");
                String password = request.getParameter("password");
                String method = request.getMethod();
                String auth_type  = request.getAuthType();
                if(session.getAttribute("useInfoBean") != null)
                    request.getRequestDispatcher("/dashBoard").forward(req,res);
                else{
                        if(username != null && password != null && method.equaIsgnoreCase("POST") && (auth_type.equalsIgnoreCase("FORM_AUTH") ||  auth_type.equalsIgnoreCase("CLIENT_CERT_AUTH")) )
                             chain.doFilter(req,res);
                        else 
                          request.getRequestDispatcher("/Login.jsp").forward(req,res);
    }If carefully look at the code the autherization is given only if either user is already logged in or making an attempt to login in secured way.
    to know more insights about where these can used and how these can be used and how ?? the below links might help you.
    http://javaboutique.internet.com/tutorials/Servlet_Filters/
    http://e-docs.bea.com/wls/docs92/dvspisec/servlet.html
    http://livedocs.adobe.com/jrun/4/Programmers_Guide/filters3.htm
    http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
    http://www.servlets.com/soapbox/filters.html
    http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
    and coming back to DAO Pattern hope the below link might help you.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    http://java.sun.com/blueprints/patterns/DAO.html
    http://www.javapractices.com/Topic66.cjp
    http://www.ibm.com/developerworks/java/library/j-dao/
    http://www.javaworld.com/javaworld/jw-03-2002/jw-0301-dao.html
    On the whole(:D) it is always a good practice to get back to Core Java/J2EE Patterns.and know answers to the question Why are they used & How do i implement them and where do i use it ??
    http://www.fluffycat.com/java-design-patterns/
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
    http://www.cmcrossroads.com/bradapp/javapats.html
    Hope that might help :)
    REGARDS,
    RaHuL

  • Help with xfa-form

    Hello,
    I am a developer (VB6 ASP),
    Please, I need to know, What I need to populate/read an xfa-form, that was created for another company.
    I do not know what is the tool that I need to investigate, or a component. (the pdf form it was created with liveCycle)
    The original empty pdf form is in xfa-form and I need fill in and the resulted file is delivered to another person that stamp digital signature,
    I can fill this pdf form manually with adobe reader 9, but i need this task programmatically.
    has any idea for this?
    Thank you in advance!
    (sorry for my english)
    Clarisa

    Thank you Hodmi!
    Another question, I new in adobe Technologies, and I am lost in the family of LiveCycle products,
    I need pre-populate the pdf that I have attached, xfa-form1.pdf
    for example,
    1- I download this pdf from an external site,
    2- I have to pre-populate with 2 Fields that I obtain from my Database,
    3- I embed this pdf file in aspx page(ASP.NET)
    4- the user 1 must put their signature.
    4- the user 2 must put their signature.
    End
    I saw code that manipulate programmatically .xdp files with pdf forms, but I do not know if I can manipulate this pdf that I have attached, please, could you help me, If in theory I Can do that?
    (I have to do with ASP.NET)
    Best Regards!
    Clarisa

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

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

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

  • Help with Scripting forms when additional characters added

    Hi,
    I am new to scripting in adobe professional, I thank anyone in advance for any advice or help they can give me.
    I am trying to use the calcuations within the forms that I am putting fields onto.  In the process I discovered that the program the forms are within are attaching a pipe and additional characters after the actual name that I have named them.  So, I am not able to use even the simple calculations within adobe to "sum" fields.   For example: I named the field "1_1Text" and this is what displays when you go into the calculations and pick the fields you want.  But the actual name is "1_1Text|1234567" so the calculations will not work.
    I take it then I need to use the advanced scripting but I am unsure of the format for a routine such as this.  I have a little knowledge of javascript but it has been awhile.  There must be a scan to find the pipe and then you should be able to chop off the extra characters since I will never know the characters the program adds on so then I can do calculations on these fields. Then you would have to put them into an array or something to save them?   Any help with a script or hints would surely be appreciated.
    Thanks!

    Could explain more fully how you are creating your forms and what programs you are using from the creation of the base document to which program and how you are adding fields.
    I think you are misunderstanding me.   I use Adobe Acrobat Professional 6.0.  I can get the calculations to work correctly if I use the form as it is after creating it. 
    But these forms are put into an SQL database and they get selected within a VB.net program or ASP.net program (both are used).  So these programs (VB.net or ASP.net) are adding the extra characters at the end, hence I do not know the names of the fields when the forms are being filled in.  So the calculations do not work with the "original names" that I created for the fields.
    I just figured if I created a routine that looped through and chopped off the extra characters these programs put on the end I would be able to do the calcuations and they would work.  I believe there is a substring operation within javascript.

  • Help with contact form

    Hi,
    there is a contact form on my site and it works to submit a message, but it always has my name as sender in it and my email adress to reply to!
    This is a form where customers are booking appointments, the shop always thinks that the emails are coming from me!
    I checked site manager - system emails - but what am I supposed to put in as from email? It should use the customers email, which will change all the time.
    I need help with that fast!
    Thanks in advance
    cheers
    Cat

    Hello Cat
    The "From" email is the email that will be displayed as the sender of the email (although the email is always sent from our servers), so it is not the customer's email address. You can set it to any email address, that can be your client's email address too, so when a reply is sent, the reply would be sent to the client. This is about the email that is sent to the visitors of the site, also known as the "Autoresponder" email.
    Cheers
    Parikshit

Maybe you are looking for