RE: [PHP] Re: how to insert form data

2004-06-03 Thread Ford, Mike [LSS]
On 03 June 2004 03:57, Ligaya Turmelle wrote:

 shouln't be
 QUOTE: input type = textarea name=quote...

If that was a question, then: No, it shouldn't.  Some versions of a certain
browser may have supported this, but it has never been part of any HTML
standard.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: how to insert form data

2004-06-02 Thread Matt MacLeod
Should be:
form name=form meth0d=post action=input/php
NAME: input type=text name=name id=name /
QUOTE: textarea name=quote id=quote/textarea
input type=submit name=submit value=Submit /
/form
HTH
Matt
On 3 Jun 2004, at 04:33, BigMark wrote:
OK no errors now but no data inserted,  my form must be wrong as well.
form  method=post action=input.php
NAME
   input name=textfield type=text id=name 
QUOTE
   input name=textarea type=text id=quote 
  input type=submit name=Submit value=Submit
/form
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: how to insert form data

2004-06-02 Thread Jay Blanchard
[snip]
Well getting closer now, its inserting into the tables but they are
blank
(no text)
[/snip]

Have you echo'd out the values to the screen?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: how to insert form data

2004-06-02 Thread Jay Blanchard
[snip]
Well getting closer now, its inserting into the tables but they are
blank
(no text)
[/snip]

let's go short...(and watch for/avoid keywords like 'name')
form.php

form action=input.php method=POST
input type=text name=username
input type=submit name=submit value=Submit
/form

input.php
?php
$username = $_POST['username'];
echo $username . br\n;

$sql = INSERT INTO whosaid (username) VALUES (' . $username . ');
if(!($insert = mysql_query($sql, $yourConnectionString))){
echo mysql_error . \n;
exit();
}
?
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: how to insert form data

2004-06-02 Thread Jay Blanchard
[snip]
thanks works fine
[/snip]

No problem...a couple of notes

a. Avoid using words that may be key words (such as 'name'). There are
lists available for you database and PHP at their websites.
2. Always respond to the list as a private response may get
inadvertently dumped to the spam folder.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: how to insert form data

2004-06-02 Thread Ligaya Turmelle
shouln't be
QUOTE: input type = textarea name=quote...

Respectfully,
Ligaya Turmelle
Matt Macleod [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Should be:

 form name=form meth0d=post action=input/php
 NAME: input type=text name=name id=name /
 QUOTE: textarea name=quote id=quote/textarea
 input type=submit name=submit value=Submit /
 /form

 HTH


 Matt

 On 3 Jun 2004, at 04:33, BigMark wrote:

  OK no errors now but no data inserted,  my form must be wrong as well.
 
  form  method=post action=input.php
  NAME
 input name=textfield type=text id=name 
  QUOTE
 input name=textarea type=text id=quote 
 
input type=submit name=Submit value=Submit
 
  /form
 
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php