Jump to content

Fill multiple textfields


synted

Recommended Posts

something like...

 

<form method="post" action="">

<input type="text" name="whatever" value="<?=var1?>" />

<input type="submit" name="submit" />

</form>

 

At the top of the page do something like:

 

if(isset($_POST['submit']))

{

    $var1 = 'a';

}

 

In the form above the value for the input text field will be filled in with the 'a' from $var1.

Thank you for that. Now i want to make it more complex. I have some persons. Lets say 2. NameA and NameB. I have a monthly plan for them and which hours they can work. I have their requests for the shifts that they can not work. So i want to use the fill button for both of them on a monthly view so it can fill my database with the days and shifts they can work.

 

Is it possible? I am stuck and can't think anything to help me move on.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.