Re: [PHP] sending data to two tables.

2002-04-30 Thread Jason Wong
On Wednesday 01 May 2002 07:34, Jule wrote: Hey, This time it's not about missing quotes or parenthasies i hope. I'm trying to make a form which sends name, email, website, favsong and comments to table guestbook, but when the checkbox mailinglist is checked it should send the name and email

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jule
I don't know, every time i submit the form w/ the checkbox checked. it gives me the echo string which comes when the if is not executed..it adds the entries from the form to the guestbook table, but doesn't add the name and email to the mailinglist table. it doesn't give me any php or mysql

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jule
So it executed the first if: if (mysql_db_query ($DBName, $Query, $Link)) {         echo Your entry will be addedbrClick a href=../index.php?left=guestbookrighttop=guestbookrightbottom=guestbookrttitle=mailinglistrbtitle=gbaddhere/a to go back.;     }

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jason Wong
On Wednesday 01 May 2002 11:48, Jule wrote: but not the second one: if (isset($Guestbook[mailinglist])) { You should be using: if (isset($Guestbook['mailinglist'])) {         if (mysql_db_query ($DBName, $Query2, $Link)) {             echo Your

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jule
Alright i'll take care of that, thanks a lot! Jule On Wednesday 01 May 2002 00:26, you wrote: On Wednesday 01 May 2002 11:48, Jule wrote: but not the second one: if (isset($Guestbook[mailinglist])) { You should be using: if (isset($Guestbook['mailinglist'])) {