How do I create a form that redirects based on the entry of the form?

What I'm trying to do, is to have a form with a single entry. Lets call it "ID".

There are several pages that form can lead to the ID according to user input.

All extensions page ends with the code. For example, www.page.com/0001.html.

So I want the user to "0001" then submit. The user will be directed to the page www.page.com/0001 if they put one is not valid user ID is directed to the "Not found" page

Any help would be much apreciated! Thank you.

on form.php put a form like this:


on redirect.php put this:

<>

If (isset($_POST['id'])) {}

Header ('Location: http://yoursite.com/'. $_POST['id']. 'html');

"exit";

} else {}

Header ('Location: http://yoursite.com/form.php');

"exit";

}

?>

best,

Shocker

Tags: Dreamweaver

Similar Questions

  • How to generate a sql script that is based on the structure of the table

    I want to generate a sql script that is based on a table structure.

    For example:

    If the table is:

    CID id c_value
    -----------------------------
    1 1 zz
    2 1 yy
    3 2 zz
    4 2 xx
    5 3 ss
    6 tt 3


    The expected output is:

    WITH
    CHILD_tab like)
    SELECT 1 cid, 1 id, 'zz' c_value of all the double union
    SELECT 2 cid, 1 id, 'yy' c_value of all the double union
    SELECT 3 cid, 2 id, 'zz' c_value of all the double union
    SELECT 4 cid, 2 id, 'xx' c_value of all the double union
    SELECT 5 cid, 3 id, 'ss' c_value of all the double union
    SELECT 6 cid, 3 id, 'tt' double c_value)


    11.1.0.7.0 release

    I do a lot of XML these days (maybe too well) so here is a solution involving XQuery.
    We pass a query string and it generates a CLOB containing the WITH clause:

    SELECT DBMS_XMLGEN.Convert(
    XMLQuery(
    q'[concat(
    "WITH t AS (
    ",
    string-join(
     for $i in /ROWSET/ROW
     return concat( " SELECT ",
                    string-join($i/*/concat("'",ora:replace(text(),"'","''"),"' ",local-name()),", "),
                    " FROM dual" ),
    " UNION ALL
    "
    ),
    "
    )")]'
    passing dbms_xmlgen.getXMLType('SELECT * FROM scott.emp')
    returning content
    ).getClobVal(), 1) AS WITH_CLAUSE
    FROM dual;
    
    WITH_CLAUSE
    --------------------------------------------------------------------------------
    WITH t AS (
     SELECT '7369' EMPNO, 'SMITH' ENAME, 'CLERK' JOB, '7902' MGR, '17/12/80' HIREDATE, '800' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7499' EMPNO, 'ALLEN' ENAME, 'SALESMAN' JOB, '7698' MGR, '20/02/81' HIREDATE, '1600' SAL, '300' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7521' EMPNO, 'WARD' ENAME, 'SALESMAN' JOB, '7698' MGR, '22/02/81' HIREDATE, '1250' SAL, '500' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7566' EMPNO, 'JONES' ENAME, 'MANAGER' JOB, '7839' MGR, '02/04/81' HIREDATE, '2975' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7654' EMPNO, 'MARTIN' ENAME, 'SALESMAN' JOB, '7698' MGR, '28/09/81' HIREDATE, '1250' SAL, '1400' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7698' EMPNO, 'BLAKE' ENAME, 'MANAGER' JOB, '7839' MGR, '01/05/81' HIREDATE, '2850' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7782' EMPNO, 'CLARK' ENAME, 'MANAGER' JOB, '7839' MGR, '09/06/81' HIREDATE, '2450' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7788' EMPNO, 'SCOTT' ENAME, 'ANALYST' JOB, '7566' MGR, '19/04/87' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7839' EMPNO, 'KING' ENAME, 'PRESIDENT' JOB, '17/11/81' HIREDATE, '5000' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7844' EMPNO, 'TURNER' ENAME, 'SALESMAN' JOB, '7698' MGR, '08/09/81' HIREDATE, '1500' SAL, '0' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7876' EMPNO, 'ADAMS' ENAME, 'CLERK' JOB, '7788' MGR, '23/05/87' HIREDATE, '1100' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7900' EMPNO, 'JAMES' ENAME, 'CLERK' JOB, '7698' MGR, '03/12/81' HIREDATE, '950' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7902' EMPNO, 'FORD' ENAME, 'ANALYST' JOB, '7566' MGR, '03/12/81' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7934' EMPNO, 'MILLER' ENAME, 'CLERK' JOB, '7782' MGR, '23/01/82' HIREDATE, '1300' SAL, '10' DEPTNO FROM dual
    )
    

    It may be useful for small datasets only because we reached quickly ORA-01706.

  • How can I create DVD now that there is not yet?

    How can I create DVD now that there is not yet?

    I need to create menus and chapters etc.

    You can use the CS6 version, see here - https://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html

    Thank you

    Jeff Pulera

    Safe Harbor computers

  • How can we create a promotion that is not out of the box?

    Hello
    How can we create a promotion that is not out of the box?

    Hello

    You can create a new descriptor from point to point in atg/commerce/pricing/pricingModels.xml.

    ~ Abdelali

  • How do you create a flash in-game popup on the same frame?

    How do you create a flash in-game popup on the same frame?
    I need to make a popup in flash on the same chassis. Basiclly as you reach the framework and randomly (I know how to do things at random) a popup can appear saying that you got a price; and I want that things in the back remains the same.
    Please help me!
    Thankx in advance.

    Code is placed in the timeline in the framework where you intend it to be.

    You have not given enough information to be able to help with your problem of var timer.  Try to reason it yourself well.

  • When I click on a file, it brings up a search screen. How can I change back so that it opens just the file?

    When I click on a file, it brings up a search screen.  How can I change back so that it opens just the file?

    Open the box and run by pressing the Windows logo and the R keys together then type;

    regsvr32 /i shell32.dll click OK

  • By using only the keyboard, how can I create an email using Outlook Express, have the files of "painting" in the body of the email

    original title: only the keyboard

    By using only the keyboard, how can I create an email using Outlook Express, have the files of 'paint' in the body of the email, also registered another Web page?

    Hi r. Gull,.

    You can view using Outlook Express keyboard shortcuts, documented in:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/mail_hotkeys.mspx?mfr=true

    I hope this helps.

  • How to display a hidden shortcut that is pinned to the Start Menu?

    HIDDEN PIN TO THE MENU SHORTCUT START

    How to display a hidden shortcut that is pinned to the Start Menu? This problem occurs very simply but does not quite simply. I've pinned a shortcut to the Start Menu before you uncheck the hidden attribute (knew I had) causing the shortcut to be recorded without being visible. When I tried to pin it again I was alerted to his presence by the fact that the second pinning made an extension of title (2). When I tried to change the title, I received the message that a link of this title was already present. I don't want to stay as a situation lasting this is why I need instructions on how to change it. I could just change the title of the second pinning something close but different but then I would have two shortcuts to the same program pinned on my Start Menu, without being able to be removed. I just * because if I can tell. I could uninstall the program and then run another program looking for broken shortcuts to 'fix' and then (I guess that means deletion when they can't be 'fixed') but I would like to avoid the extra steps for pedestrians to the advantage of learning a new technique of Windows if such jurisdiction exists. Could use this help as soon as POSSIBLE. Thank you.

    C:\Users\\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu

    Just tested myself and my shortcut is there.

  • EBS 11i - how to create a responsibility that can only reset the passwords

    Hello

    I need to create a responsibility of helpdesk team reset user passwords, but do not do. I created a menu and I tried "UMX_FORGOT_PWD", "UMX_OBJ_PASSWD_MGMT", "UMX_RESET_PWD" works but without hope. What should I do or how can I add more effort to make it work?

    user13014069 wrote:
    Yes, I meant this one. But it has everything, it can create, edit, close a user so I don't want to use this menu. I want to create a responsibility that questionable users and reset their passwords, that is, not can change anything else.

    For this you must use the customization to restrict who has access to this responsibility / to make all actions other than resetting the passwords.

    How to customize the forms [ID 468657.1]
    Information about the ability to customize the form of Oracle Applications 11i [ID 279034.1]
    Sample unit test for the use of form customization in Oracle Applications [ID 744069.1]
    Limits of customization of forms [ID 420518.1]

    Document personalization of forms
    Document personalization of forms

    Thank you
    Hussein

  • How do you create a calculation that automatically updates the changes?

    Hi all

    I am trying to create a named using subtraction calculation. That's how it is stated:

    KM

    -KG

    Field1 =

    -Field2

    = GM (liquid)

    The tab calculate for zone 1, I wrote in the simplified field notation:

    KM - KG

    And the tab calculate = GM (liquid), I wrote it in simplified field notation:

    Field1 Field2

    And it all works perfectly that I change all the totals in the fields of Field2 or KG or KM .

    If changes in these areas they don't update automatically.

    How can I make them to update automatically?

    Any help would be much appreciated.

    Thank you very much.

    Bridie

    To set the order of computation of field, go first in forms editing mode (Tools > forms > change), then: tasks > other tasks > edit fields > set field calculation order

    Order the fields in a list of everything that makes sense for your form. Be sure to do it again once the form works as you want to ensure that it is always configured correctly.

  • How to create a button that is persistent on the top of the Gallery HTML page

    Hello

    My InDesign folio, I have an article with photo gallery full HTML page. The photo grid occupies the full screen. I want to create a button that is persistent on top of this gallery, which the user can type to go to the main Menu page. This button is always visible in one place, even as the user scrolls up and down the gallery. I tried to create it on the top layer and the upper layer of the page master, but the button disapperas loading the HTML gallery.
    If the user does not see any button to navigate through the Gallery to another article.

    Any ideas how to create persistent button?

    Thanks in advance.

    -MP

    Why not do things just like an HTML article? You do it in the Muse.

  • How can I create a form in Muse?

    I need to create a form and have radio buttons. I don't see any shape tool - any ideas on the best way to do this?


    Thank you.

    Larry

    Post edited by: Corey@Adobe Edited the title to make it more relevant to the question.

    You can also take a look at this:

    How can I add a contact form / form of feedback on my site?

    It contains a video on creating a form using Business Catalyst, as well as links to some other form of third party design tools.

  • How can I create a watermark that has the text and graphics?

    Lightroom does not seem to offer a text watermark OR graphic, can create a watermark that has both?

    Basically, you need create a chart with text it contains.

  • How to create a hierarchy that is shared using the rules file.

    Hello - I am trying to create a shared in Essbase hierarchy that looks similar to the following

    -Member 1

    Member 2

    Member 3

    Member 4

    Member 5

    Member 6

    -Member 3

    Member 4

    Member 5

    Member 6

    Basically trying to shoot the 3 members 1 member hierarchy and show it separately.

    What my rule file should look like this situation.

    Grateful for the help.

    Thank you.

    Well, you can do that, as you describe because your member 3 would be a shared member and shared members cannot have children.

    you could do something like

    Member 3A

    Member 4

    Member 5

    Member 6

    Of course if you really want to watch a member 3 with his children, I don't understand why you need a shared hierarchy you can get the update rollup member 3 in the hierarchy of the primary

  • How do I create a stensil that can be added in different files adobe Reader?

    I want to create a stencil that can be used in multiple files adobe for purposes of quality control. Be useful if someone helps out me on that.

    Thanks for your comments... Could you please guide me on creating a stensil and its use in acrobat reader... Also I would like to know if we can import the file into adobe reader Acrobat reader...

Maybe you are looking for

  • iOS 10 music on phone

    Hi all Downloaded the new iOS 10 the other day and now my music disappeared all stupid! Before there was a button to select if he showed only music downloaded to the phone and not the entire library. I can't find anywhere on the new version, all have

  • How can I disable the auto hide feature

    I've updated Firefox, and now all the "stuff menu" at the top disappears.I actually prefer to see what are the open tabs, etc.How can I disable this?

  • How to fix Sqlite3.dll not found or missing errors?

    How to fix Sqlite3.dll not found or missing errors?

  • BlackBerry Q10 Q10 how wake phone

    Anyway is to 'wake up' the phone by sliding across the screen?  I went through the menus and thought that it was an option and I had him for this but I can only turn it back on by pressing the power button on the top. Thank you

  • definition for example please

    Please explain what is the difference between the TO_CHAR and TO_DATE functions?