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
--- 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\")";
[
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
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
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
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
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
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
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
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
10 matches
Mail list logo