Pass a variable value from one php page to another
问题 I'm trying to send the value of this php get_field variable from a wordpress Archive page. get_field('supplier_email_address', 'product_brand_' . $term->term_id ); to another sendmessage.php page which is never accessed other than with the of JS to send a form. The variable I need filled is called: $sendto="value"; How can I achieve this? EDIT: Apparently this requires more information. 回答1: Use session variables. First of all every page you want to use sessions on needs to have the function