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 6048469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:28:00+00:00 2026-05-23T07:28:00+00:00

I have the following: Product name and right after form and submit button. I

  • 0

I have the following: Product name and right after form and submit button. I need to type something in the forms and after clicking submit I want the product name to change.

while ( ! feof( $fp ) ) {
   $line = fgets( $fp, 1024 );
   list($url, $path) = explode(',', $line);
   echo "<div style='width:420px;height:30px;background-color:#2cb823;'>$url</div>";
   echo "<div style='width:420px;height:30px;background-color:#2875DE;'>$path</div>";
   echo "<div style='width:420px;height:30px;background-color:yellow;'>$default<input type='text'></input>
   <button type='button'>Name product</button></div>";
   echo "<br/>";
}

As you see the variable $default="Product" is what I want to change via button(by submitting the form).

  • 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-05-23T07:28:00+00:00Added an answer on May 23, 2026 at 7:28 am

    You can’t change this via PHP directly.
    PHP is server-sided code. All of it is already processed at the server before you, the client, gets the code.

    If you want to do something like that, you’re going to have to use javascript. If you want this to update at the server, then use Ajax.

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

Sidebar

Related Questions

I have the following JSON String { name:Product, properties: { id: { type:number, description:Product
I have the following html ,where i want to get the product name only
I have the following Grails domain class: class Product { String name Float basePrice
I have the following JSON string (from wikipedia http://en.wikipedia.org/wiki/JSON ) { name:Product, properties: {
I have XML in the following format: <Products> <Product name=MyProduct1> <Components> <Component name=MyComponent1> <Teams>
I have an XML file with the following structure: <Products> <Product name=MyProduct1> <Components> <Component
I have the following models: Product: name, shop_id (foreign key), brand_id (foreign key), price
I have the following snippet: <ul> @foreach (var product in Model.Products) { <li>@product.Name x@product.Count</li>
I have a Product class something like: class Product { public string Name; public
I have the following (simplified) database tables: Products - ProductID, int, PK - Name,

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.