PHP Pass variable to next page

后端 未结 8 2319
Happy的楠姐
Happy的楠姐 2020-11-21 06:40

It seems pretty simple but I can\'t find a good way to do it.

Say in the first page I create a variable

$myVariable = \"Some text\";
<
8条回答
  •  粉色の甜心
    2020-11-21 06:54

    Thanks for the answers above. Here's how I did it, I hope it helps those who follow. I'm looking to pass a registration number from one page to another, hence regName and regValue:

    Create your first page, call it set_reg.php:

    
    
    

    Create your second page, call it get_reg.php:

    
    
    

    Back to set_reg.php

    Although not as comprehensive as the answer above, for my purposes this illustrates in simple fashion the relationship between the various elements.

提交回复
热议问题