Re: [PHP] passing form information.

2003-10-02 Thread J Morton
Payne wrote: > Hi, > > I am working a form to pass information from it to mysql data. I am > able to connect to the database. But nothing is being pass from the form > to the php page. This is my php code... > > -form.html

Re: [PHP] passing form information.

2003-10-02 Thread Chris Shiflett
--- Payne <[EMAIL PROTECTED]> wrote: > I am working a form to pass information from it to mysql data. [snip] > > > > > > [snip] > $sql = "INSERT INTO $table_name > (leads_id, title, f_name, l_name) > VALUES > ('$leads_id', \"$title\", \"$f_name\", \"$l_name\")"; [

Re: [PHP] passing form information.

2003-10-02 Thread Payne
If I use the $l_name = $_POST["l_name"]; am I correct to believe that that will go in php area before the sql statement? Chris Sherwood wrote: Dont apologize. even the best of us make mistakes. the .$field. is a more reliable way of displaying the information contained within. as in a few case

Re: [PHP] passing form information.

2003-10-02 Thread Payne
I tried that and I am still get this. INSERT INTO leads (leads_id, title, f_name, l_name) VALUES ( '', '', '', ''); and empty information is being posted into the database. Chuck Chris Sherwood wrote: Hi Payne for starters your missing an ? at the last echo secondly I would rewrite the

Re: [PHP] passing form information.

2003-10-02 Thread Chris Sherwood
Dont apologize. even the best of us make mistakes. the .$field. is a more reliable way of displaying the information contained within. as in a few cases I find the variable itself gets printed ie $field shows up as $field in cases where I didnt use the .$field. just an observation on my part. if

Re: [PHP] passing form information.

2003-10-02 Thread Payne
Brad Pauly wrote: Payne wrote: [big snip] What I am getting this INSERT INTO leads (leads_id, title, f_name, l_name) VALUES ('', "", "", "") Is register_globals off? - Brad That's in the php.ini right? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] passing form information.

2003-10-02 Thread Payne
Sorry, I am LD. I do have the in my code. The leads_id is an autonumber, it the primary key for the table. What do the .$field. gives you over $field? Also another LD mistake, addlead.php is addlead.php. I will try it. Payne Chris Sherwood wrote: Hi Payne for starters your missing an ? at

Re: [PHP] passing form information.

2003-10-02 Thread Brad Pauly
Payne wrote: [big snip] What I am getting this INSERT INTO leads (leads_id, title, f_name, l_name) VALUES ('', "", "", "") Is register_globals off? - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing form information.

2003-10-02 Thread Chris Sherwood
Hi Payne for starters your missing an ? at the last echo secondly I would rewrite the sql statement to read $sql = "INSERT INTO $table_name (leads_id, title, f_name, l_name) VALUES (' ".$leads_id." ', ' ".$title." ', ' ".$f_name." ', ' ".$l_name." ');"; but the state

[PHP] passing form information.

2003-10-02 Thread Payne
Hi, I am working a form to pass information from it to mysql data. I am able to connect to the database. But nothing is being pass from the form to the php page. This is my php code... -form.html Untitled