Pass PHP variable to PHP form with blank values first time through
<p>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 </p>

<pre><code>&lt;a href="http://mydomain.com/taskform.php?varname1=
myvalue"&gt;Continue&lt;/a&gt;
</code></pre>

<p>and collect it on the next page taskform.php with</p>

<pre><code>&lt;?php

$varname = $_GET['myvalue'];

// other code 

?&gt;
</code></pre>

<p>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?</p>

<p>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.</p>

<p>Thanks in advance.</p>
