How can I make a php page so that when I click on the button,another page is created with the text like as "Hello World"
And It all must be happened on the website.
It would be great of you if you can help!
Thank YOu
How can I make a php page so that when I click on the button,another page is created with the text like as "Hello World"
And It all must be happened on the website.
It would be great of you if you can help!
Thank YOu
I have way to little information to really help you.
But it is possible to send a variable to another page by pressing a button. You need to create 2 files: home.php and message.php.
home.php, the page from where we sent our message. Change value to whatever message you are trying to send
<form action="test4.php" methode="POST">
<input type="hidden" name="text" value="Hello World">
<input type="submit" value="Submit">
</form>
message.php, the page where we receive our message
<?php
if(isset($_POST['text'])){
echo $_POST['text'];
}
?>