Carrying a $_POST vars on the next page

I have a page that uses variables $_POST to insert a record - simple form processing.

What I'm trying to do is to use these same variables of $_POST in the next page (after submit) to create an email that will then be used to verify that the e-mail address is real.

I am fairly new to this and I don't know how to do this...

I thought using the following, I could re - enter variables and use them on the next page, but obviously not.

<? PHP
$username = $_POST ['username'];
$postgroupcode = $_POST ["groupcode"];
$email = $_POST ['email'];
$title = $_POST ["title"];
$firstname = $_POST ["firstname"];
$lastname = $_POST ['name'];
? >

Does this mean I put the mail function in the same page as the record insertion function?

EviePhillips wrote:
> BUT how you can use this information on other pages of the site? What type
> "variable" you would create and how?

Use a session variable.

Put this at the beginning of the page:

session_start();

Then enter the variable of $_POST and assign it to the variable $_SESSION
Like this:

If (isset($_POST['variableName'])) {}
$_SESSION ["VariableName"] = $_POST ["VariableName"];
}

If your server uses magic quotes (execute the phpinfo() function and see if)
magic_quotes_gpc is 'On'), modify the above code to this:

If (isset($_POST['variableName'])) {}
$_SESSION ["VariableName"] = stripslashes($_POST['variableName']);
}

You now have access to $_SESSION ["VariableName"] in any page that begins
with session_start().

--
Adobe Community Expert David Powers
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

  • Items flowing the next page hides the subsequent elments

    Hello

    I have 2 subform placed vertically alongside each other within the main subform.

    Subform1 (positioned, allow the page break, continues to fill the previous page, in the content area)

    subform2 (flowed)

    TextField1 (var Length)

    textfiled2 (var Length)

    textfiled3 (filxed length)

    textfield4 (fixed length)

    subform3 (seen textfield with length) (positioned) fixed

    Now my problem is that textfiled1 and textfield2 are variable length in subform2 then when they hv a lot of data which was to return to the next page, in this case data flows next page but hides the textfiled3 and the textfield4.

    I don't know what the problem of the setting of the page layout, please suggest something

    Thank you

    POOJA

    Here is the corrected form... Let me know if that helps...

    https://Acrobat.com/#d=IrPMaJTioS2OfKN7T1Kf6A

    Thank you

    Srini

  • Inserting record in the database and then display on the next Page

    Hello!

    For a while since I posted here, but I've been pulling my hair out on this one.  Here's what I want to do.  I have a page that I want to be able to enter text in two form fields, then click on "Insert disc", and then on the next page, I just submit display.  For example, on the "insert.php" page I want to enter the field ID and Joe 43569 in the first name field.  Then after I click on submit (or insert record) the next page will have a text that says: "congratulations Joe, your ID is 43569.»  Have a great day! "Or something to that effect.

    I have the database mySQL, set up and insert records into it since this page works correctly.  Here is the code of my insert.php page which I think is the issue.   I'm just confused as to which should be added to the page detail.php to have this sentence appears correctly.  Is there something that should be added to the code on the page insert.php?  Something after the detail.php on that first line?

    Thank you, thank you, thank you in advance.

    Brent

    $insertGoTo = 'detail.php ';
    If (isset {}
    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
    $insertGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $insertGoTo));
    }
    ? > <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 >
    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >
    < table align = "center" >
    < tr valign = 'of basic">
    < td nowrap = "nowrap" align = "right" > ID: < table >
    < td > < input type = "text" name = "ID" value = "" size = "32" / > < table > "
    < /tr >
    < tr valign = 'of basic">
    < td nowrap = "nowrap" align = "right" > first name: < table >
    < td > < input type = "text" name = "lastName" value = "" size = "32" / > < table > "
    < /tr >
    < tr valign = 'of basic">
    < td nowrap = "nowrap" align = "right" > < table >
    < td > < input type = "submit" value = "Insert file" / > < table >
    < /tr >
    < /table >
    < input type = "hidden" name = "MM_insert" value = "form1" / >

    < / make >

    When you submit the form, the form fields values are passed to the query insert as variables of $_POST, but as soon as you redirect the user to another page, these variables are destroyed.

    There are two ways to preserve the values: use sessions and session variables, or add values to the end of the redirect URL query string. Using the variables of session is probably easier since you can do it at the top of the page that inserts data into the database without affecting the code of Dreamweaver Server behavior.

    Put this at the top of the current page:

    
    

    In details.php, add top of the page. You can then use $_SESSION ['ID'] and $_SESSION ['name'] to display the values.

  • possible to encapsulate cross tab on the same page, rather than on the next page?

    Hello

    I'm working on a report on the cross tab in .rtf. I noticed that when there are more columns that can fit on a page, the prosecution is carried out on a new page. Is it possible to have continued to perform on the next 'line' under the first instead of on the next page?

    Thank you

    JK

    It's here :)

    http://winrichman.blogspot.com/2009/05/cross-tab-by-limiting-number-of-colums.html

  • I resize my image of window, so everything is OK, but as soon as I change window on the next page the image goes back to the small size. How can I stop this product. This happens when go on facebook or any other place. Help me please.

    reduced the size of the General image that I see toby about a third - I resize by pressing the CTRL key and using my mouse scroll button to extend the set of the image so that it fills the screen. As soon as I go to the next page the entire image back to original size and I have to repeat the action again.

    The function Zoom of Page Firefox does a level of field by field to save favorite settings level users zoom, there is no default Page Zoom level setting in Firefox.

    Try the extension Default FullZoom Level:

    https://addons.Mozilla.org/en-us/Firefox/addon/6965

    Or the NoSquint extension:

    https://addons.Mozilla.org/en-us/Firefox/addon/2592/

  • Icons wiggle and move in the home screen but will not go to the next page

    Icons wiggle and move in the home screen but will not go to the next page

    You need to move to the edge and hold the button for a few seconds so he can move to another screen.

  • Scanning the next Page or ImageView

    Is there a way that we can create a sweep next to slide to the next page? Or even drag the next imageview?

    I create a page tutorial for my application when first loaded, and I want the user to be able to hit to swipe to go to the next page/image from the tutorial.

    It would look a lot at the homepage of the BB10, where you can slip on the next page of the apps.

    There is no manager of integrated into kayaking sweeping motions. But you can listen tactile events on ImageView and manage by scanning by yourself. TocuhEvent of use: https://developer.blackberry.com/cascades/reference/bb__cascades__touchevent.html
    With it, you can follow the movement of the finger and decide to move to the next page or not.

  • I have placer place text, and then change the font size, but it does not flow to the next page

    Hello! Tell when I have text that fits into a page, because it is absorbed in indesign with a great font size small. Then when I want to increase the font size it does not continue on the next page. How can I get there?

    Thank you very much!!

    Click the port at the bottom right of the text block to recharge the cursor, go to the next page and click to place it.

    If this is new to see you:

    Text of wire among images in Adobe InDesign

    InDesign 03 - Mini tutorials - threads of text - Threads view - overflow of text warnings areas - YouTube

  • go to the next page.

    Hello

    I wrote the code to move to the next page (2) below

    But assume that something is not that it does not work.

    InterfacePtr < IPageList > iPageList ((IPMUnknown*) fntDoc, IID_IPAGELIST);

    UidSecPage UID = iPageList-> GetNthPageUID (2);

    UIDRef uidrefSecPage (db, uidSecPage);

    InterfacePtr < ICommand > setPageCmd(CmdUtils::CreateCommand(kSetPageCmdBoss));)

    setPageCmd-> SetItemList (UIDList (uidrefSecPage));

    CmdUtils::ExecuteCommand (setPageCmd);

    What should I do to keep the (set) moving to the next page when I finished the operation with the current page?

    Thank you.

    Hi Shreelipi,

    Sorry, that the command should the spreadRef not the documentRef in the list of items. You can use the following example. Add controls pointer by yourself.

    docRef given, pageRef, spreadRef

    InterfacePtr setPageCmd(CmdUtils::CreateCommand(kSetPageCmdBoss));)
    setPageCmd-> SetItemList (UIDList (spreadRef));

    InterfacePtr uidData (setPageCmd, UseDefaultIID());
    uidData-> Set (pageRef);

    InterfacePtr layoutCmdData (setPageCmd, UseDefaultIID());
    InterfacePtr layout (Utils()-> QueryFrontLayoutData());
    layoutCmdData-> Set (docRef, layout);

    CmdUtils::ProcessCommand (setPageCmd);

    Markus

  • Passing values to the next page

    Hello

    I use Apex 4.2.5 in Oracle 11 g

    I've created a form that transmits its value to another page when a button is clicked.

    The field of employment in the page of the form has values like 'SELLER' in a folder,

    "ANALYST" in the next record...

    This page contains a button, and when it is selected, the values are passed to the page successfully as

    The problem is that some areas of employment are having values such as "PROGRAMMER, systems ANALYST.

    separated by commas in a record. When these values are passed to the next page, I get only the first job. and the rest is not.

    In the previous example, I get only PROGRAMMER and not the SYSTEM ANALYST.

    but when I change the field to be as "PROGRAMMER/ANALYST" then it works. Why not with commas?

    Thanks in advance

    KJ

    KJChellam wrote:

    I use Apex 4.2.5 in Oracle 11 g

    I've created a form that transmits its value to another page when a button is clicked.

    The field of employment in the page of the form has values like 'SELLER' in a folder,

    "ANALYST" in the next record...

    This page contains a button, and when it is selected, the values are passed to the page successfully as

    The problem is that some areas of employment are having values such as "PROGRAMMER, systems ANALYST.

    separated by commas in a record. When these values are passed to the next page, I get only the first job. and the rest is not.

    In the previous example, I get only PROGRAMMER and not the SYSTEM ANALYST.

    but when I change the field to be as "PROGRAMMER/ANALYST" then it works. Why not with commas?

    Commas are used to separate the values of each element.

    You should avoid passing string values that may contain any reserved characters in the URL in links. It is not to transfer data in the URL, other than the minimum possible number of discrete alphanumeric identifiers. Values required in a target page can be recovered in the element source and properties by default, calculations or using these values of process ID, or by referencing the other page element values or application already in session state.

    The values containing a colon cannot be passed through the URL. The values containing commas can be passed if the value is escaped with backslashes:

    &P10_ENAME.,\&P10_JOBS.\

  • Manual search - when start us research by removing the value manally, same results for future research in the next page.

    Hi guys OAF.

    Created a page of manual search with several buttons below. After entering search criteria and click on the first button, it shows the records in a separate page where I perform trade operations. The second page, I have a "back to the main search" link that takes me to the first page of search.

    Now, if I remove the value of any field of text input by clicking X mark the end of the field, or pressing the button remove the key board and try searching again, same values are to come in the next page as if I did not remove the value.

    Data on the next page is mainly with the help of setWhereClause. And here is the code I wrote.

    public void issueQuery (String OrderNum)

    {

    If ((OrderNum! = null) & & (!("".)) Equals (OrderNum.Trim ()))

    {

    setWhereClause ("ORDER_NUMBER =: 1");

    setWhereClauseParams (null); Always reset

    setWhereClauseParam (0, OrderNum);

    }

    executeQuery();

    }

    Please advice, what has gone wrong or its something Oracle behavior?

    Thank you

    Bideau

    I got the answer, it is resolved after the setwhereclause reset each time.

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • Go to the next page or go to previous page buttons in Muse

    I used to work in iWeb, who had the option "go to the next page" or "go to the previous page. Now I work in Adobe Muse, but this option is not available. This could be an option in Adobe Muse in the near future? It would be very welcome.

    They are just normal links. You can create your own resources in library for these things and reuse.

    Mylenium

  • My file is configurΘ for dΘmarrer in full-screen, but falls off full appear when you go to the next page. What should I do?

    File created in Acrobat Pro XI to open the mode full screen.

    Open the file in Adobe Reader on a different computer, it opens in the mode full screen. However, when I go to the next page, it falls on full screen.

    I have absolutely no idea why and have no idea how to do to prevent it from happening.

    Any help is greatly appreciated!

    Hi RiggerPJ,

    Please check if the preference look at a full screen or not.

    Also open Reader, go to the Help menu and check for updates.

    Kind regards

    Nicos

  • If I try to check my students / teachers / students of Creative Suite by sending my student card the next page says "error".

    If I try to check my students / teachers / students of Creative Suite by sending my student card the next page says "error". How can I check my trial version and turn it into a full if this link does not work?

    Hi Jana,

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

Maybe you are looking for