How to get and display html input form value on same page using php

Product Name:
E-mail:
Price:
Customer Name:
Schedule Period:Monthly Weekly Fortnightly
Start Date:
Payment Tersms:
Card Number:
Ex. Month:
Ex. Year:
CVV:

products->create([ ‘name’ => $NAME, ‘description’ => $EMAIL, ]); $price = $stripe->prices->create([ ‘unit_amount’ => $pprice*100, ‘currency’ => ‘nzd’, ‘product’ => $product[‘id’], ‘recurring’ => [‘interval’ => $period, ‘interval_count’ => $intercount], ]); $customer = $stripe->customers->create([ ‘description’ => $CNAME, ’email’ => $EMAIL, ]); $paymentM = $stripe->paymentMethods->create([ ‘type’ => ‘card’, ‘card’ => [ ‘number’ => $cardnumber, ‘exp_month’ => $exdate, ‘exp_year’ => $exyear, ‘cvc’ => $cvc, ], ]); $stripe->paymentMethods->attach( $paymentM->id, [‘customer’ => $customer->id] ); $stripe->customers->update( $customer->id, [‘invoice_settings’ => [‘default_payment_method’ => $paymentM->id]] ); $stripe->subscriptionSchedules->create([ ‘customer’ => $customer->id, ‘start_date’ => $ad, ‘end_behavior’ => ‘cancel’, ‘phases’ => [ [ ‘items’ => [ [ ‘price’ => $price->id, ‘quantity’ => 1, ], ], ‘iterations’ => $endterms, ], ], ]); } ?>