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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:51:21+00:00 2026-06-03T08:51:21+00:00

I want to sent some information through a from, executing a php file that

  • 0

I want to sent some information through a from, executing a php file that should read a values.I have a form in html and there is a (declared) variable which name is $matricola.
This is a part of code that I have written:

<form action="cancella.php" method="get">
<input type="submit" name="matricola" value=' . $matricola . ' />
</form>

cancella.php is the file that should be recalled, and I want that in this php file $_GET[‘matricola’] will have the value written is $matricola (which is a number).
But the problem is that I display this image:
enter image description here

Where 10000 is the right value of $matricola, but I don’t want want to display “10000” as the title of the button !!! I want just that $_GET[‘matricola’] will have value 10000 (of course variable and not always 10000), and put another title of the button.How do I do that?

  • 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-03T08:51:22+00:00Added an answer on June 3, 2026 at 8:51 am

    Don’t store the data in your submit button. Hide it in a hidden field.

    <form action="cancella.php" method="get">
       <input type="hidden" name="matricola" value=' . $matricola . ' />
       <input type="submit" name="submitBtn" value="Submit">
    </form>
    

    The data will still be accessible in your PHP code the exact same way:

    $matricola = $_GET['matricola'];
    

    Be sure to filter and validate the input before using this value in database operations to avoid possible SQL Injection. Never trust input from your web application users.

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

Sidebar

Related Questions

i have been sent a directory tree of source code that i want to
I have web site set up that has some forms authentication through LDAP. I'm
I want to bubble some information from a frame to its parent object (information
I want to shrink the data that is sent back and forth via AJAX,
I want to have my pdf files sent this way to my users :
I have an array: myarr = []; I'm filling it with some values: myarray['name']
I have some troubles to find the right loop to check if some values
First off, some basic information about my project: I have a website with about
So, I want to run a quick query to give me some information on
I have a small form in Zend Framework, and when it's sent and valid,

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.