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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:55:58+00:00 2026-06-15T21:55:58+00:00

I want to make a PHP form to capture a task and then allow

  • 0

I want to make a PHP form to capture a task and then allow the user to refresh the form to add another task. To keep track of the user, I planned to pass the variable with

<a href="http://mydomain.com/taskform.php?varname1=
myvalue">Continue</a>

and collect it on the next page taskform.php with

<?php

$varname = $_GET['myvalue'];

// other code 

?>

My problem is that I get the user’s name and some other information from another .php form that links to the .php task form. The first time I link to the task form, I get a MySQL error because there’s no task info being passed. So do I have to use a different form the first time through that only catches the user’s name?

Let me know if you need clarification. It’s probably obvious that I’m passing the user name value so that it doesn’t have to be repeatedly entered for each task form submission. I’m assuming that the task name in each table row will be unique, if you’re wondering how I plan to query them. As far as security, I was panning to cross that bridge later but if you have any security tips I’d be glad to hear them.

Thanks in advance.

  • 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-15T21:56:00+00:00Added an answer on June 15, 2026 at 9:56 pm

    You can just use isset() to make sure the value is present. This will stop the error.

    http://php.net/manual/en/function.isset.php

    So you’ll want something like:

    $varname = isset($_GET['myvalue']) ? $_GET['myvalue'] : FALSE;
    

    Which means if it’s present you’ll get the value, otherwise treat it as FALSE.

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

Sidebar

Related Questions

I want to make this form: echo '<form method=post action=ratinghandler.php style=width: 250px> <input type=hidden
I want to make my php page only accessible from another page redirect and
I tried to make php form script, which process data submitted by the user,
I want to make a form which takes information then uses that information on
I want to make a php ajax post.(post value without refresh the page) here
I want to make a php ajax post.(post value without refresh the page) here
I want to make a PHP database insert with jQuery. How do I add
I want to make a little contact form, where the user inputs his name,
I want to add new values in php array by html form. I wrote
I want to make a php form, which takes an URL as input from

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.