Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8974443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:40:57+00:00 2026-06-15T18:40:57+00:00

Suppose I have something like this: <form method=get action=token.php> <b>Enter token:</b><br> <input type=text name=token><BR>

  • 0

Suppose I have something like this:

<form method=get action="token.php">
<b>Enter token:</b><br>
<input type="text" name="token"><BR>
<input type="submit" value="Submit">
</form>

And after the user enters the token, he is taken to a new page that displays the results of running token.php. How do I edit this new page? What if I want to enter another form in it?

I am just learning these things(complete beginner).

Thank you very much

P.S. Can I add something like this in the middle of the .php file?

<html>
<form method=get action="myPhp.php">
<b>Enter data:</b><br>
<input type="text" name="data"><BR>
<input type="submit" value="Submit">
</form>
</html>

What would the correct syntax look like?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:40:58+00:00Added an answer on June 15, 2026 at 6:40 pm

    There are two major ways to add HTML code to your PHP file.

    First things first: All PHP code has to go in between <?php and ?>. After a ?> and before a <?php, you can write HTML code which will then be outputted without going through any PHP code.

    Another way to output HTML is by simply using echo in PHP.

    echo "<b>Hello world!</b>";
    

    That line of code will print a bold “Hello world!” message on your page.

    Anyway, with all due respect, I think I can tell from your question that you do not fully grasp the concept of PHP and HTML just yet. Before trying to use PHP I recommend you try to do some PHP tutorials — it’s a whole other language than HTML, and knowing HTML does not mean you’ll be able to work with PHP right away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have something like this: if ($command === 'txt') { header('Content-type: text/plain;charset=utf-8'); echo
Suppose to have a code like this: <div class=notSelected> <label>Name <input type=text name=name id=name
So, I have this HTML form: <form id=search_form class=form_wrapp accept-charset=utf-8 method=get action=http://testing.com/results> <input class=inputbox
Suppose you have something like this: class intlist: def __init__(self,l = []): self.l =
Suppose I have something like this page: <noscript>You need JS for this page</noscript> <script>
Suppose I have something like this: class A { public B mem; public int
I have a route that is suppose to match something like this localhost:3000/site/admin and
Suppose I have a table of users. Something like: ID integer, USER text, POSITION
Suppose I have something like the following in test.cxx (and that I do the
In handling a form post I have something like public ActionResult Insert() { Order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.