Is it possible to change submit button's URL link based on user input?

I have a separate html page that does this with a php script, but I had help creating that php file which is just a form that allows users to enter a passcode that I provide them which will then simply link them to an external html page.  Since I don't know about php, I am thinking a possible work around would be to have a text input box which would allow a user to enter (passwordA) then click Submit to load (pageX.hmtl) or they could enter (passwordB) and Submit would load (pageY.html).  
If anyone knows how I could link my new flash project with my .php file, that would be great, or if there is AS3 code that would do this I would love that!

I have the php file on my server and the correct path in my as3 now.  Here are the exact codings I'm using:
AS3:
stop();
import flash.events.*;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
submit_btn.addEventListener(MouseEvent.CLICK, btnDown);
function btnDown(event:MouseEvent):void {
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("http://www.jmusicphoto.com/flashClient.php");
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
passcode_txt.text = "";
submit_btn.addEventListener(MouseEvent.CLICK, passcodeSend);
function passcodeSend(event:MouseEvent):void{
variables.key = passcode_txt;
varLoader.load(varSend);
flashClient.php:
<?php
if($_REQUEST['key']) {
$key = $_REQUEST['key'];
$key = strtolower($key);
switch($key) {
case 'home':
header('Location: http://www.jmusicphoto.com/index.php');
break;
default:
echo "Oh noes!  You got something wrong.  You typed " . $key . " maybe there is a mistake?<br><br>";
break;
?>
Practically same php code is working here: http://www.jmusicphoto.com/EOSlogin.php   "home" 

Similar Messages

  • Is it possible to change the page of a linked PDF without relinking?

    Is it possible to change the page of a linked PDF without relinking and going through the import options?
    I'm trying to import seveeral pages of the same PDF. The process would be quickest if I could import it once, then duplicate the image box a number of times, then just change the page number each image box is linking to.
    At the moment I'm having to relink (or place), then go through Import Options, then choose the page - it's a long process that feels like it should be quicker.
    Any ideas?
    Thanks

    The short answer is no, that's not possible, but it IS possible to import multiple pages at one time.
    My favorite script for this is from Scott Zanelli: InDesignSecrets » Blog Archive » Zanelli Releases MultiPageImporter for Importing both PDF and INDD Files, but there's also a sample script included with ID.

  • Is there change credit card details- URL link in manage my account missing

    someone on this forum that has more brains than the online chat support do?
    I have been trying for 4 days to get someone to find out why the change credit card details URL link is missing from my manage account area. I keep getting told the same thing over and over again...below is an example of the most recent conversation i had this morning...this is absolutely flaming useless...i should have ended the conversation before he got past the first line...
    Patel: Thank you for contacting Adobe.  We are available 7 days a week, 24 hours a day. Goodbye!
    Rahni Verey: Hi Patel,
    Patel: I am sorry for the typo error.
    Patel: Hello! Welcome to Adobe Customer Service.
    Patel: Hi Rahni.
    Patel: We are facing down time error due to which the applications are not responding . Hence  we will be unable to check anything, I request you to contact us after few hours.
    Rahni Verey: I need to update my credit card information, but have not been able to due to site maintenace
    Patel: We are facing down time error due to which the applications are not responding . Hence  we will be unable to check anything, I request you to contact us after few hours.
    Patel: I could have helped you, but we are facing internal application outage due to Server/System Maintenance and Updates. I kindly request you to Please Contact us back on 2-3 hours, We sincerely regret for the inconvenience  caused and the loss you are facing with.
    Rahni Verey: i have been trying to do this since Friday...its now Monday here in Sydney! How long is this going to take?
    Patel: Request you to please wait for few more minutes, and the applications will start working fine again.
    Rahni Verey: i am not having any problems with my applications...i want to change my monthly billing subsciption credit card details!
    Patel: I do understand Rahni, in order to update the credit card details, you will have to go through the process of using adobe applications.
    Patel: I have provide you with the steps, however if the steps do not work, you will have to wait for applications to work fine.
    Patel: I will provide you the steps to update your credit card information.
    Patel: .
    Patel: 1. Sign in to www.adobe.com
    Patel: 2. In the navigation pane or pop-up menu, click Manage Account. [ You may be prompted to enter your password to verify your identity. ]
    Patel: 3. Under Plans & Products, click Manage Plan.
    Patel: 4. Under Payment details, click Edit payment details.
    Patel: 5. Make appropriate changes in the Edit Payment Method pop-up and then click Save.
    Patel: .
    Patel: .
    Patel: You can use the below link to know how it's done page by page.
    Patel: https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
    Rahni Verey: i say again, there is nothing wrong with the applications. Its your bloody server that is playing up...there is no option in account management for me to update my credit card details. i already know exactly how to do it!
    Patel: Rahni, I can help with the credit card update, however to do that , I need to check with your subscription under our server, as I am not able to check any services, I am not able to help you currently.
    Rahni Verey: is there someone there who can directly access my account and see what i am talking about. Its plainly obvious if you go directly into my account and try to change credit card details. The URL link for this function is missing!
    Patel: No.
    Patel: To help you on this, the applications must working fine.
    Patel: I am sorry for the situation that you facing currently.
    Patel: Request you to please try after some time.

    Is this the link you have been using? Credit card https://helpx.adobe.com/utilities/credit-card.html

  • How would I change the variables in multiple methods with the user input?

    Here is my code for a tic tac toe game I have to do for an assignment, it is currently set at the normal 3 x 3, but the teacher what the user to be albe to change these to between 3-5 before they start playing, here is my codeing
    import java.util.*;
    public class TicTacToe
    Constructs an empty board.
    private String[][] board;
    private static int ROWS = 3;
    private static int COLUMNS = 3;
    public TicTacToe()
    int size = in.nextInt();
    board = new String[ROWS][COLUMNS];
    // Fill with spaces
    for (int i = 0; i < size; i++)
    for (int j = 0; j < size; j++)
    board[i][j] = " ";
    Sets a field in the board. The field must be unoccupied.
    @param i the row index
    @param j the column index
    @param player the player ("x" or "o")
    public void set(int i, int j, String player)
    if (board[i][j].equals(" "))
    board[i][j] = player;
    Creates a string representation of the board, such as
    |x o|
    | x |
    | o|
    @return the string representation
    public String toString()
    String r = "";
    for (int i = 0; i < ROWS; i++)
    r = r + "|";
    for (int j = 0; j < COLUMNS; j++)
    r = r + board[i][j];
    r = r + "|\n";
    return r;
    I am having a problem figuring out how to change the variables ROWS , COLUMNS to the given user input, it seems easy but i can't really figure out how to do it
    thanks ahead of time

    import java.util.*;
    public class TicTacToe
    Constructs an empty board.
    private String[][] board;
    private static int ROWS = 3;
    private static int COLUMNS = 3;
    public TicTacToe()
    int size = in.nextInt();
    board = new String[ROWS][COLUMNS];
    // Fill with spaces
    for (int i = 0; i < size; i++)
    for (int j = 0; j < size; j++)
    board[j] = " ";
    Sets a field in the board. The field must be unoccupied.
    @param i the row index
    @param j the column index
    @param player the player ("x" or "o")
    public void set(int i, int j, String player)
    if (board[j].equals(" "))
    board[j] = player;
    Creates a string representation of the board, such as
    |x o|
    | x |
    | o|
    @return the string representation
    public String toString()
    String r = "";
    for (int i = 0; i < ROWS; i++)
    r = r + "|";
    for (int j = 0; j < COLUMNS; j++)
    r = r + board[j];
    r = r + "|\n";
    return r;
    }sorry for not posting code correctyl new to this forums
    Thanks for the help but let me rephrase my question, the rows and columns are the same like 3x3, 4x4 ,or 5x5,
    -when the program runs it will ask the user for what they want to set the tic tac toe at between 3 - 5.
    My question is how do I get the code
    Scanner a = new Scanner ( System.in );
    System.out.print("Enter the size of the tic tac toe box to be between 3-5 : ");
    int sizeTicTacToe = a.next();to change the variables of ROWS COLUMNS
    I just want to know of a way to make the users input of sizeTicTacToe to change the variables ROWS & COLUMNS in my toString() and TicTacToe() methods

  • Change Submit button to img and use as link for email?

    I'm trying to create a form using a submit button. I don't want to use the email link because of spoofing problems. How can I make this happen?

    Your stated question and your subject are out of synch - what is it you want to do?
    * use an image as a submit button?  If so, just insert an image field.
    * submit the form to produce an email without using the mailto - type link?  Then you would have to understand how to process form submissions using a script.
    There are only two ways to process form data -
    1.  Use mailto:[email protected] as the action of the form
    2.  Use a server-side scripting method to a) harvest the form's data, b)
    process it in some manner, e.g., enter it into a database, c) formulate and
    send an email to one or more email recipients, and d) redirect the visitor
    to some ending page
    Method 1 is quite simple, and is also the least reliable.  It depends both
    on your visitor having an email client already installed on their computer -
    this eliminates public computers, or home users without email clients
    installed (more and more it seems) - and on the installed email client responding to
    the mailto call.  It is not possible to use this method *and* send the visitor to a
    thank you page as well.
    Method 2a is the preferred method, since it eliminates the problems of method
    1, but it means that you have to grapple with server-scripting somehow (ASP,
    CF, PHP, perl, etc.).
    Method 2b would be to use some third-party form processing, like
    http://www.bebosoft.com/products/formstogo/.
    You would have to decide which of these methods is best for your needs,
    but if it's Method 2a, then start by asking your host what they provide for form
    processing.  If it's 2b, then read their FAQ/instructions carefully.

  • Dynamicaly change submit button text?

    Is there a way to do this based on what screen you are on inside of web determinations?, I attempted editing messages.en.properties and using a substitute attribute %textSubmitButton% instead of submit and set that attribute to "testing" within the rulebase, but the submit button displayed %textSubmitButton%, Is there another way to do this?

    You can override the default text displayed for the submit button by subscribing to the OnApplyTemplatesEvent and altering the value of the 'submit-button-text' property in the screen context based on the current screen being rendered.

  • Submit Button in web linked form

    I have created a form with a submit button and have inserted the form as a link on my website, Ithe form upload perfectly but the submit button when pressed creates the error "operation not permitted". I do not need this data to be tracked in a spreadsheet, but I want to make it easy for the person to complete and send back without having to do a save as and attach manually to an email.  When I test the form from my desk top it works perfectly, outlook opens up with the recipients email address and the completed form is attached as a complete PDF, why is it not working when I insert it as a link.  Any help would be much appreciated.  I am using Adobe Acrobat X Pro 10.  Thank you

    Hi Chintan,
    Basically, I have tried to search in the forum within this two days... But I could not find the step by step how to do it. Anyway, I will try to search again. Really appreciate if you don't mind give me the link of it.
    Hi Otto,
    I have created the WD application. Unfortunately, the requirement is online processing form which is attached in the SAP transaction. So, when user open document number of one transaction, the form will be displayed and user can fill the information in this form. Then after that user will click SAVE button to submit data to SAP.
    Any advise?
    Thanks,
    Nonik

  • Change font size of url link in abap web dynpro

    hi
    i want change the fonr size of an url link connection in abap web dynpro
    but i didnt find where to do that
    isi it possible?

    Hi,
    There is no option to do that.
    The user has to change the TEXT SIZE option for the browser. I guess there is no other way.
    Let Thomas give some inputs on this.
    Regards,
    Lekha.

  • Dynamic change in the query name based on user input

    Hi Gurus,
    In a scenario, country appears as a user input variable.When the user specifies his country, the same query displays <b>Business trends</b>' data pertaining to his own country and rest of the world(international) in two tables.The reports are developed using Web application designer.
    Can the name(description) of the query be changed  so that the user input value for country gets dynamically reflected in the query name like <b>Business trends:Selected country vs International</b>?
    Regards,
    Balaji

    Hi Bala,
      ya this can be done by text variables. create a text variable( replacement path on the country infoobject) by going to the query properties on the description.
    if the user enters country value then it will be displaed on the description of the query .
    assign points if useful .
    regards
    santosh

  • Submit Button - Email & URL

    Hello, I'm rather new to working with Adobe LiveCycle Designer. I have installed a sucessful e-mail button to the form, but I would also like to have it enter a webpage after the user had submitted their form. I know that this is possible since I've done this with Acrobat. I'm fine with installing scripts, since my form has a few existing functions. I've searched for the url function - if any, but couldn't locate it.
    I do have another somewhat relevant question. For better versality, should I export the file to static version 6 or 7? I would like to know if it'll be able to keep the same functions.
    I appreciate the assistance!

    Hi,
    The command you are looking for is:
    app.launchURL("http://www.assurehsc.ie/blog", true);
    New features are added all the time to the XFA Specification, so if you save your form for an older version, then some of the features that you build into your form may not work.
    You can set the target version of the form in the File > Form Properties > Defaults tab:
    But then you should look in the Warnings tab to see if your form will work OK in that taget version. If there are no warnings you are good to go. If there are warnings it will tell you the min version you need to set the target for:
    Static forms tend to be smaller in file size. However if you start to show/hide objects or move objects around or have buttons to add objects, then you will need to save your form as Dynamic:
    Good luck,
    Niall

  • Enable or disable button on a ribbon based on user permissions in SharePoint 2010

    Hi,
    I have requirement to find a way to disable Inheritance, Add and Modify group from permission tab for users who are not added into specific group e.g. Administrators
    I have followed the following article to create a feature but have encountered few issues:
    http://msdn.microsoft.com/en-us/library/ff408060.aspx
    Issues:
    I used the above code as a sample to create a feature and test if it would work. It worked fine but even though i have replaced Location="Ribbon.Library.Actions.ConnectToClient" with my permission locations,
    Connect to Outlook button still doesn't appear when the feature is activated. If i deactive this feature it shows
    Connect to Outlook button even though there is no reference for this in the code!
    I have modified the Elements.XML and have added the following code but it still disables the buttons for a user who has Site Collection Administrator permissions, i just want to disable this for users who are in particular group:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="RemoveRibbonButton"
    Location="CommandUI.Ribbon"
    RequireSiteAdministrator = "TRUE"
    >
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.Permission.Modify" />
    </CommandUIDefinitions>
    </CommandUIExtension>
    </CustomAction>
    <CustomAction
    Id="RemoveRibbonButton"
    Location="CommandUI.Ribbon"
    RequireSiteAdministrator = "TRUE"
    >
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.Permission.Add" />
    </CommandUIDefinitions>
    </CommandUIExtension>
    </CustomAction>
    </Elements>
    I have also have another issue when this feature is activated even though i haven't removed 'Check' and 'Manage' Ribbon locations, they are also greyed out as shown it the screenshot below:
    I have also created a user control using the following method:
    http://sharepointroot.com/2010/06/18/remove-actions-from-the-ribbon-sharepoint-2010/
    But again i need to restrict it specific user group.
    Any advice how to do this? or which way is better creating a feature or creating a user control? even though i liked the creating the feature as it gives your more control.
    Regards,
    Kashif

    Thanks for your reply Paul.
    I do understand that this is a partial solution and wouldn't stop them completely from doing these actions using different UI but atleast it would remove these options from the ribbon which is causing us some major issues when clicked by mistake especially
    'inherit permissions'.
    We do have governance policies in place and a certain user group can add and remove users from SP site. But the issue we have currently is that when one of these (authorised) users uses 'inherit permissions from parent' site. This removes the unique
    permissions from the subsite and delete all SP groups / permission level in the subsite. In some cases subsite contains confidential information which is then exposed to all the users who have access to the parent site.
    The main button which i'm interested to disable is 'Inherit Permissions' which i believe can't be used from anyother UI apart from the ribbon.
    I just need to know if it's possible to restrict this for some users or group? even if it just removes it from the ribbon only i would be still interested to explore this implementation.
    Any help would be apperciated.
    Regards,
    Kashif

  • How to change the label of a link based on a condition in a report.

    Hi all,
    I have a report, in which i created a link.
    i want the the label of the link to change based on a column value.
    for eg. i created report based on emp table which has a link on empno .
    if the deptno of the employee is 10 i want the link to be displayed as "employee of deptno 10".
    if the deptno of employee is 20 or 30 i want the link to be displayed as "others"
    Thanks in advance.

    One way I've found to do this is to put the condition part into the select statement. Use a decode to determine which link text you want to display, e.g.,
    select '&lt;a href="yourlinkhere?employee=' || empno || '"&gt;' || decode(deptno,10,'employee of deptno 10','others') || '&lt;/a&gt;' emplink from emp;

  • How to create a sharepoint list to add/change/delete the data in SQL server Table based on users inputs

    I have a table in sql with employee_num and I need to create a list and link that list to this table to make changes to table based on values user enter or selects.

    Hi,
    In addition, you could refer to one similar thread for related information:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/8ee8a7b2-ddfc-4654-b84e-b062aeb527ae/how-to-create-exernal-list-in-sharepoint-which-fetch-data-from-multiple-sql-table?forum=sharepointgeneral
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Is it possible to not respond to a request based on user input

    I have client side validation in place that 100% guarantees that so long as the user uses the page appropriately, a request will not be sent unless it is valid.
    On the server side i am validating the parameters passed in. If the validation fails I would like to send no HTTP response to the user, as I can assume the request is "hostile".
    Is it possible to do this? Thanks for your help

    hi :-)
    if there is a request ;-) there is a response :-)
    if you will not response to user's request what will be the output for the user?
    i think you can do that but you can prefer a better response for an 'hostile' request, like sending a user to a custom page that send a warning that might lead to ip blocking or displaying an info that net activities are monitored or logged ;-)
    regards,

  • How to change the number of items displayed on the screen based on user input

    I need to place a number of input clusters on the user's screen based on the number of input types he will have.  Is there an easy way to do this?  (Say I have 3 different electrodes, I want to be able to add information for each then take this information and add it to a database, this case adding three new record sets to the database.  If I only have one electrode though, I only want one cluster on the screen and only one recordset will be added to the database)
    Message Edited by Vitamin on 01-11-2007 12:36 PM

    Place your clusters in a 1D array and create a property node for the array. You can use the Number of Rows property to control how many elements are shown. Wire the array into a for loop to index it.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

Maybe you are looking for

  • How to change keyboard shortcut for cycle through open tabs in PS and AI CC 2014

    I would love to set my own keyboard shortcuts for cycling through open tabs in PS and AI 2014 on OS X. I found out that this can be achieved with ctrl+tab in PS, but I couldn't manage to make any of the suggestions in the forum work for AI. As said,

  • Apple ID and Ipad2

    Hi, I have bought 2 ipad2's, one for each of my kids. i have set them up using my apple id, which charges my credit card. Do i need to set them up with there own apple id so that my credit card is not charged and the telstra prepaid sim is charged? I

  • How to call proc in package having input as accociative array

    Hi, I want to call a proc inside a package having input paramter as accociative array.How can it be called.? The signature of package is as follows TYPE ar_line_details_rec IS RECORD ( mfg_part_num VARCHAR2 (100), description VARCHAR2 (1000), line_am

  • Attachement in Oracle Application Custom Form

    Hi, Can any one please give idea/path how can i use Attachment in Oracle EBS in Custom Form? Thanks in advance Oraapp Nebie

  • DataGrid display problem (was WebService: nested return object)

    I am invoking a web service which works fine. resultFormat = "object" the event.result = an ArrayCollection, it has two ObjectProxys wrapping the actual objects. I can check them in the debugger - the values are as expected. Person personId:long name