Re: [PHP] Problems with $_POST

2004-01-21 Thread Reidar Solberg
or entering data into a DB. I use: ... ... if ($_POST['submit'] == 'Register') { ... code for INSERT into DB. This works OK, but if I REFRESH the page, it duplicates the "dataset" in the table. How can I reset $_POST['submit'] so it don't make this h

[PHP] Problems with $_POST

2004-01-21 Thread Reidar Solberg
I have a FORM for entering data into a DB. I use: ... ... if ($_POST['submit'] == 'Register') { ... code for INSERT into DB. This works OK, but if I REFRESH the page, it duplicates the "dataset" in the table. How can I reset $_POST['submit'] so it don&

[PHP] Accessing .bat file from PHP

2003-11-30 Thread Reidar Solberg
I want to start a .bat file on my local pc from my webpage - to download some .txt files. I run PHP in my webpage - how can I make contact with the .bat file? Anyone tried this? Reidar Solberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Oh why won't it work

2003-10-27 Thread Reidar Solberg
ix = 0; while ($row_num <= $max_rows-1) { mysql_data_seek($result,$row_num); $row = mysql_fetch_array($result); $ix++; $array[$ix] [1]= $row[1]; $array[$ix] [2]= $row[2]; $array[$ix] [3]= $row[3]; $row_num++; } Hopes this helps a bit. Regards Reidar Solberg "