InMotion Hosting Support Center

hi i am harshit my question is about html +php file

Category: Phpbb

n/a Points
2014-07-10 8:48 am EST

Hits: 39
this is my code..and i want to exexute a html code and php code in 1 window like 1file ...can i send data from text box of html to php code help in my example which shon below
Enter username = <input type="text" name="t1"><br>
<input type="submit" value="submit"><br>

echo "username is "."="."$user";

You must login before you can ask a follow up question.

You must login before you can submit an answer.



11,186 Points
2014-07-10 9:23 am EST
It would not be possible to have both your form and the PHP code that is processing the form data on the same file. You will need to send the data to a separate file that processes the content of the form.

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!