[PHP] Form Loop

2008-10-18 Thread Terry J Daichendt
I'm trying to create a form with a loop. I need to append a value to a field name each time through the loop. For Instance: while ($row = mysql_fetch_assoc($result)) { $x=1; echo tr; echo tdinput type='text' id='qty' name='quantity_' size='2' value='$row[qty]' //td; echo

[PHP] Login

2008-10-07 Thread Terry J Daichendt
I want to open a page if a login is correct and another if not. What is the function to open a page in PHP? Can you show me a simple example of the syntax? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error message

2008-09-20 Thread Terry J Daichendt
in assessing the problem. Terry Eric Gorr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? ?php // page1.php

[PHP] Error message

2008-09-18 Thread Terry J Daichendt
I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? ?php // page1.php session_start(); echo 'Welcome to page #1'; $_SESSION['favcolor'] = 'green'; $_SESSION['animal'] = 'cat'; $_SESSION['time'] = time(); // Works if

Re: [PHP] Error message

2008-09-18 Thread Terry J Daichendt
You have a real attitude problem, please don't bother with me again. Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Terry J Daichendt schreef: I'm pasting this code from the example at php.net and getting these which example might that be, with 1000's of built