Re: [PHP] form question??

2005-11-07 Thread Stephen Leaf
I wrote a xsl stylesheet to do this.
takes the xml and whips it up, into a standard layout.

Don't believe I mentioned this but I might have at some point.

Register example:
formData formTitle=Register action=/ method=post
captionThank you for Registering!/caption
fields
field type=hidden   var=register  
default=yes/
field type=text title=Login name  var=name   
  
required=yes len=50 maxlength=50/
field type=password title=Password
var=passwd   
required=yes len=50/
field type=text title=E-Mail  var=email  
  
required=no  len=50/
field type=checkbox title=Show Email  var=Show 
Email   
required=no  default=yes/
field type=submit   title=Register /
/fields
/formData

On Monday 07 November 2005 12:24 pm, bruce wrote:
 hi...

 a while ago, i saw an app that allowed the user to create a form, based on
 various fields, and to setup/create the database schema to create the form.
 the app provided the user with predefined fields, as well as allowed the
 user to define their own fields in order to create the form.

 unfortunately, i can't seem to find this app, or any other app that would
 allow me to do this. can anybody point me towards an app that could/would
 do this?

 thanks

 -bruce
 [EMAIL PROTECTED]

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



Re: [PHP] form question??

2005-11-07 Thread Vizion
On Monday 07 November 2005 10:24,  the author bruce contributed to the 
dialogue on-
 [PHP] form question??: 

hi...

a while ago, i saw an app that allowed the user to create a form, based on
various fields, and to setup/create the database schema to create the form.
the app provided the user with predefined fields, as well as allowed the
user to define their own fields in order to create the form.

unfortunately, i can't seem to find this app, or any other app that would
allow me to do this. can anybody point me towards an app that could/would do
this?

If you want something comprehensive and you happen to use Dreamweaver you can 
do what you need and you might also  take a look at some of the extensions 
such as MX Kollection http://www.interaktonline.com or Web Assist 
www.webassist.com  or many other extensions which would five you all you are 
likely to need.

david

-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.

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



Re: [PHP] form question ???

2002-11-12 Thread Jim Hatridge
HI Mike et al,,,

That was it! Thanks. Don't know how I missed that G So next question!  
How can I tell my program that I want only postive numbers inputed? ie no 
letters or neg numbers. 

Thanks

JIM




On Monday 11 November 2002 19:57, Ford, Mike [LSS] wrote:
  -Original Message-
  From: Jim Hatridge [mailto:hatridge;fecundswamp.net]
  Sent: 11 November 2002 16:27
 
  looking at the code below. It works and I get what I want on
  the screen. BUT
  it leaves a gap between the top lines and where the table
  starts equal to the
  size of the table, ie if the table is 5 lines long the gap is
  5 lines etc.
 
  Any ideas what I'm doing wrong?

 [snip]

  printf( td%s/tdtd%s/tdBR/tr,

 Yes -- that BR between the /td and the /tr is most likely the
 culprit. Most browsers of my experience tend to render *any* content that
 is not correctly positioned within container tags above the table.

 Cheers!

 Mike

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

-- 
Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
  http:/www.fecundswamp.net/~hatridge/stamps/index.html

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




RE: [PHP] form question ???

2002-11-11 Thread Ford, Mike [LSS]
 -Original Message-
 From: Jim Hatridge [mailto:hatridge;fecundswamp.net]
 Sent: 11 November 2002 16:27
 
 looking at the code below. It works and I get what I want on 
 the screen. BUT 
 it leaves a gap between the top lines and where the table 
 starts equal to the 
 size of the table, ie if the table is 5 lines long the gap is 
 5 lines etc. 
 
 Any ideas what I'm doing wrong?
[snip] 
   printf( td%s/tdtd%s/tdBR/tr, 

Yes -- that BR between the /td and the /tr is most likely the culprit.
Most browsers of my experience tend to render *any* content that is not
correctly positioned within container tags above the table.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, 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] form question ???

2002-11-11 Thread Tom Rogers
Hi,

Tuesday, November 12, 2002, 2:27:10 AM, you wrote:

JH HI all...

JH looking at the code below. It works and I get what I want on the screen. BUT 
JH it leaves a gap between the top lines and where the table starts equal to the 
JH size of the table, ie if the table is 5 lines long the gap is 5 lines etc. 

JH Any ideas what I'm doing wrong?

JH Thanks,

JH JIM

JH ##

JH form action=page2.php method=post

JH ?php
JH   $db = mysql_connect(localhost, , XX);
JH   mysql_select_db(WartHog,$db);
JH $result = mysql_query(select * from inventory order by name, $db);

JH echo (table border=1);
JH $i=0;
JH while ($myrow = mysql_fetch_array($result)) {
JH $c= (++$i%2? 'yellow':'white');

JH if($Odate == substr($myrow[name],0,6)) {
JH echo(TR bgcolor=\$c\TDinput type=\hidden\ name=\id[]\  
 
value=\$id\/TD);
JH echo(TDinput type=\hidden\ name=\idx[]\  
value=\$myrow[0]\/TD);
JH echo(TDinput type=\text\ SIZE=4 MAXLENGTH=4  
JH name=\quantities[]\/TD);
JH printf( td%s/tdtd%s/tdBR/tr, $myrow[name], 
JH $myrow[details]);
JH }
JH };
JH echo /table;
?
JH input type=submit name=submit value=Save Order
JH /form
JH ##


get rid of the br tag here /tdBR/tr

-- 
regards,
Tom


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




Re: [PHP] Form Question

2002-10-31 Thread John Nichel
Try this

SCRIPT LANGUAGE=JavaScript
!--
function ClearLevelListForm()
{
	for (var i=0;idocument.LevelListForm.elements['rgItems[]'].length;i++)
	{
		if (document.LevelListForm.elements['rgItems[]'][i].checked == true)
		{
			alert(document.LevelListForm.elements['rgItems[]'][i].value);
			document.LevelListForm.elements['rgItems[]'][i].checked = false;
		}
	}
}
//--
/script

PHP List wrote:

Hi,
I am hopeing someone can help me with this.
This is more of a javascript problem I suppose.
I have a bunch of check boxes on a from that I have given a name of rgItems[] so I can access them as an array in php.
But I can't find a way to clear all the checkboxes on the form at once. a reset button only resets the form to the original values, but I need to be able to clear all the check boxes.

SCRIPT LANGUAGE=JavaScript
!--
function ClearLevelListForm()
{
 for (var i=0;idocument.LevelListForm.elements.length;i++)
 {
  if (document.LevelListForm.elements[i].checked == true)
  {   
alert(document.LevelListForm.elements[i].value);
document.LevelListForm.elements[i].checked = false;  
  }
 }
}
//--
/script
I do get the correct alerts from the above script corresponding to the number of checked boxes, however, the second line does not seem to be unchecking the boxes. I am not sure if this has something to do with the fact that all the boxes have the same name rgItems[] and the browser doesn't know which one to uncheck.
Has anybody else come accross this?
Thanks,
And I apologize for asking this question on the PHP List, but I am hoping someone here may have had the same problem when name mutliple form elements using the array style:   blah[]



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




Re: [PHP] Form Question

2002-10-31 Thread PHP List
Thanks, but same problem.
alert() will give me the correct values, but it is still not unchecking the
boxes.

Strange, it obviously sees them as the statement
if (document.LevelListForm.elements['rgItems[]'][i].checked == true)
is correctly found for every checked box, but it just can't seem to find
them to uncheck them.
And I don't get any javascript errors.



 Try this

 SCRIPT LANGUAGE=JavaScript
 !--
 function ClearLevelListForm()
 {
 for (var i=0;idocument.LevelListForm.elements['rgItems[]'].length;i++)
 {
 if (document.LevelListForm.elements['rgItems[]'][i].checked == true)
 {
 alert(document.LevelListForm.elements['rgItems[]'][i].value);
 document.LevelListForm.elements['rgItems[]'][i].checked = false;
 }
 }
 }
 //--
 /script

 PHP List wrote:
  Hi,
  I am hopeing someone can help me with this.
  This is more of a javascript problem I suppose.
  I have a bunch of check boxes on a from that I have given a name of
rgItems[] so I can access them as an array in php.
  But I can't find a way to clear all the checkboxes on the form at once.
a reset button only resets the form to the original values, but I need to be
able to clear all the check boxes.
 
  SCRIPT LANGUAGE=JavaScript
  !--
  function ClearLevelListForm()
  {
   for (var i=0;idocument.LevelListForm.elements.length;i++)
   {
if (document.LevelListForm.elements[i].checked == true)
{
  alert(document.LevelListForm.elements[i].value);
  document.LevelListForm.elements[i].checked = false;
}
   }
  }
  //--
  /script
  I do get the correct alerts from the above script corresponding to the
number of checked boxes, however, the second line does not seem to be
unchecking the boxes. I am not sure if this has something to do with the
fact that all the boxes have the same name rgItems[] and the browser doesn't
know which one to uncheck.
  Has anybody else come accross this?
  Thanks,
  And I apologize for asking this question on the PHP List, but I am
hoping someone here may have had the same problem when name mutliple form
elements using the array style:   blah[]



 --
 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] Form Question

2002-01-10 Thread Mark

Just let the browser cache it.

On Thu, 10 Jan 2002 16:30:01 -0400, Lerp wrote:
Hi there, how do I keep values in a form if the user has to go back
and fill
in some missing fields?

Thx Joe :)







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2002-01-10 Thread mike cullerton

keep the data in a variable and do something like

INPUT TYPE=text NAME=name VALUE=?php print($name); ?

on 1/10/02 1:30 PM, Lerp at [EMAIL PROTECTED] wrote:

 Hi there, how do I keep values in a form if the user has to go back and fill
 in some missing fields?
 
 Thx Joe :)
 
 


 -- mike cullerton   


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2002-01-10 Thread Kevin Stone

IE5.5 actualy has a bug that will not cache certain form fields under
certain conditions.  There are other situations in which a browser won't
cache the information at all.  So it's best to do this within the script by
either printing the form from within the script its self, or include() the
HTML form into the script.  Then it's a simple matter of echoing the
information in the Value fields of each form elements.

First Name: input type=text size=30 name=first_name value=?echo
$first_name;?br
Last Name: input type=text size=30 name=last_name value=?echo
$last_name;?

That simple.

-Kevin

- Original Message -
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 1:39 PM
Subject: Re: [PHP] Form Question


 Just let the browser cache it.

 On Thu, 10 Jan 2002 16:30:01 -0400, Lerp wrote:
 Hi there, how do I keep values in a form if the user has to go back
 and fill
 in some missing fields?
 
 Thx Joe :)
 
 
 




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2002-01-10 Thread LaserJetter

I've noticed on some web pages that when the back button is pressed the data
in the fields is still there and sometimes it isnt. I would expect this with
a password field but why does it only save the data sometimes?


Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Just let the browser cache it.

On Thu, 10 Jan 2002 16:30:01 -0400, Lerp wrote:
Hi there, how do I keep values in a form if the user has to go back
and fill
in some missing fields?

Thx Joe :)









-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2002-01-10 Thread Miles Thompson


Julie Meloni has  a really nice tutorial on the at
http://www.thickbook.com

Look for the one on custom error messages.

Miles Thompson

At 08:54 PM 1/10/2002 +, LaserJetter wrote:
I've noticed on some web pages that when the back button is pressed the data
in the fields is still there and sometimes it isnt. I would expect this with
a password field but why does it only save the data sometimes?


Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Just let the browser cache it.

On Thu, 10 Jan 2002 16:30:01 -0400, Lerp wrote:
 Hi there, how do I keep values in a form if the user has to go back
 and fill
 in some missing fields?
 
 Thx Joe :)
 
 
 






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-22 Thread Jason G.

Chip,

I read all of the posts regarding this topic that I could find, and just 
*had* to reply.

(Take the TIME to look at this.  It is about the most Efficient, Powerful 
way I know of)

Do this!
__
?php

//If the hidden variable ACTION == DOIT then process the form
//This way, the form will not get processed the first time around...
if($ACTION=='DOIT')
{
   //Validate Form Here
   if(empty($txtNAME)) $oErr-txtNAME=Required;
   if(empty($txtADDRESS)) $oErr-txtADDRESS=Required;

   //if there is an error message, break out here
   if(isset($oErr)) break;

   //Save your form here...

   //All went ok...  Redirect to the next page...
   header(Location: nextpage.php);
   exit;
}

?
form name=frmMyForm method=post action=?php echo $PHP_SELF; ?
input type=hidden name=ACTION value=DOIT

?php echo($oErr-txtNAME); ?
input type=text name=txtNAME value=?php 
echo(htmlspecialchars($txtNAME));  ?

 *or*

?php1 if(isset($oErr-txtADDRESS)) echo($oErr-txtADDRESS); ?
input type=text name=txtADDRESS value=?php 
echo(htmlspecialchars($txtADDRESS));  ?

/form


-Jason Garber


At 03:49 PM 10/21/2001 -0400, Chip Landwehr wrote:
I got a form that a user fills out.  When they hit submit they are
transfered to a PHP page that verifies their data.  If a problem is found
(They forgot to enter an e-mail address) the PHP sends them back to the
original form with the field they forgot to fill out highlighted in red.
Unfortunately all there entries are wiped out and they have to re-enter
everything.  Any easy way to keep there original entries?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Form Question

2001-10-21 Thread Seb Frost

well all of the entries are passed via post or get to your form handler
(obviously).  So just pass them back when you re-call the form.

then put in

input type=text name=firstname value=?=$firstname? in the form

or something like that anyway.

- seb

-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: 21 October 2001 20:49
To: [EMAIL PROTECTED]
Subject: [PHP] Form Question


I got a form that a user fills out.  When they hit submit they are
transfered to a PHP page that verifies their data.  If a problem is found
(They forgot to enter an e-mail address) the PHP sends them back to the
original form with the field they forgot to fill out highlighted in red.
Unfortunately all there entries are wiped out and they have to re-enter
everything.  Any easy way to keep there original entries?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread Chip Landwehr

I got that but the passing back I'm having a problem with.  This is waht I
got:

if ($T3==){header (Location: new_narrative.php?FilledName=No);}

How do I change this to include a Post?


Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 well all of the entries are passed via post or get to your form handler
 (obviously).  So just pass them back when you re-call the form.

 then put in

 input type=text name=firstname value=?=$firstname? in the form

 or something like that anyway.

 - seb

 -Original Message-
 From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
 Sent: 21 October 2001 20:49
 To: [EMAIL PROTECTED]
 Subject: [PHP] Form Question


 I got a form that a user fills out.  When they hit submit they are
 transfered to a PHP page that verifies their data.  If a problem is found
 (They forgot to enter an e-mail address) the PHP sends them back to the
 original form with the field they forgot to fill out highlighted in red.
 Unfortunately all there entries are wiped out and they have to re-enter
 everything.  Any easy way to keep there original entries?




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread Chip Landwehr

I can't do that because  the form is to big and there is a limit to how much
data you can send via the URL bar.  Any other ideas?


Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 if ($T3==){header (Location:
 new_narrative.php?FilledName=Novariable1=hellovariable2=goodbye);}

 etc etc

 - seb

 -Original Message-
 From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
 Sent: 21 October 2001 21:03
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Form Question


 I got that but the passing back I'm having a problem with.  This is waht I
 got:

 if ($T3==){header (Location: new_narrative.php?FilledName=No);}

 How do I change this to include a Post?


 Seb Frost [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  well all of the entries are passed via post or get to your form handler
  (obviously).  So just pass them back when you re-call the form.
 
  then put in
 
  input type=text name=firstname value=?=$firstname? in the form
 
  or something like that anyway.
 
  - seb
 
  -Original Message-
  From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
  Sent: 21 October 2001 20:49
  To: [EMAIL PROTECTED]
  Subject: [PHP] Form Question
 
 
  I got a form that a user fills out.  When they hit submit they are
  transfered to a PHP page that verifies their data.  If a problem is
found
  (They forgot to enter an e-mail address) the PHP sends them back to the
  original form with the field they forgot to fill out highlighted in red.
  Unfortunately all there entries are wiped out and they have to re-enter
  everything.  Any easy way to keep there original entries?
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread Christian Kuhtz

Chip Landwehr wrote:
 
 I can't do that because  the form is to big and there is a limit to how much
 data you can send via the URL bar.  Any other ideas?

Use cookies.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread AD

Why not just post to the same script, then you don't have to worry about
this?

Hth,

-AD

Chip Landwehr [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I can't do that because  the form is to big and there is a limit to how
much
 data you can send via the URL bar.  Any other ideas?





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread Christopher William Wesley

On Sun, 21 Oct 2001, Chip Landwehr wrote:
 if ($T3==){header (Location: new_narrative.php?FilledName=No);}

 How do I change this to include a Post?

You can put it back on as a query string (kinda dirty, but you can't POST
it back).

?php
$myQueryString = FilledName=No;
while( list( $key, $val ) = each( $HTTP_POST_VARS ) ){
$myQueryString .=  . $key . = . $val;
}
if( $T3 ==  ){
header( Location: new_narrative.php? . $myQueryString );
}
?


~Chris   /\
 \ / September 11, 2001
  X  We Are All New Yorkers
 / \ rm -rf /bin/laden



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Form Question

2001-10-21 Thread Jack Dempsey

ok, several different solutions, best being:

1. use sessions. this is probably the simplest, most robust way of doing it,
after you've become familiar with sessions.
2. as someone mentioned before, use one page that posts to itself. this
would be easier than using sessions, but not as powerful.

jack

-Original Message-
From: Christopher William Wesley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 6:46 PM
To: [EMAIL PROTECTED]
Cc: Chip Landwehr
Subject: Re: [PHP] Form Question


On Sun, 21 Oct 2001, Chip Landwehr wrote:
 if ($T3==){header (Location: new_narrative.php?FilledName=No);}

 How do I change this to include a Post?

You can put it back on as a query string (kinda dirty, but you can't POST
it back).

?php
$myQueryString = FilledName=No;
while( list( $key, $val ) = each( $HTTP_POST_VARS ) ){
$myQueryString .=  . $key . = . $val;
}
if( $T3 ==  ){
header( Location: new_narrative.php? . $myQueryString );
}
?


~Chris   /\
 \ / September 11, 2001
  X  We Are All New Yorkers
 / \ rm -rf /bin/laden



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form Question

2001-10-21 Thread Jay


For me, using FastTemplate  calling back the same script is the best idea.
Using flags, you can have a different response by using a different 
template, yet retain all the POST data.

HTH,

At 03:49 AM 10/22/2001, Chip Landwehr wrote:
I got a form that a user fills out.  When they hit submit they are
transfered to a PHP page that verifies their data.  If a problem is found
(They forgot to enter an e-mail address) the PHP sends them back to the
original form with the field they forgot to fill out highlighted in red.
Unfortunately all there entries are wiped out and they have to re-enter
everything.  Any easy way to keep there original entries?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]