Dynadot Black Friday and Cyber Monday 2026: save more on domains. See our sales.

How do I add the text in the script from HTML

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

iWonder

Established Member
Impact
2
Hi , I`m a php learner in starting stage , infact i don`t know php at all
So i need a lil help , :blink:

I want to make a html page with a text box in which when user specifies a word it goes to the php page . let me explain :

A user comes to a page and enter`s a word in the text box present there and press submit . then the word should go to the code below .

<?

blah blah;
blah blah = $ blah;
blah = $"Word here" ;

?>

Hope you get what I meant :hehe:
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
Well it would nice if someone told me how to do this now ,

I`ll surely look at the tutorial thanks :)
 
0
Close
first page

<html>
<head></head>
<body>
<form action="get.php" method="POST">
<input type="text" name="word">
<input type="submit" value="submit word!">
</form>
</body>
</html>

second page "get.php"


<?php
$word_entered = $_POST[word];
?>
 
0
Close
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back