[PHP] Re: (Yet another) I'm blind ... post

2005-09-01 Thread Oliver Grätz
On a totally unrelated note: My god, is that ugly code!

If I see this right there's only a single piece of real PHP in it:
putting the variable in the action field. For the rest: Leave PHP an use
pure HTML. Or use a decent form toolkit. like PEAR's HTML_Quickform.
There's no point in tons of print-commands just putting out hardcoded
strings.

AllOlli

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



[PHP] Re: (Yet another) I'm blind ... post

2005-08-31 Thread Mark Rees
Martin S [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 In this code, I'm not getting the value of $list passed to the Mailman
page.
 I've checked this umpteen times by now, but fail to see the error. I've


$list is not to be found in this code sample. $lista is though.


 beaten myself suitably with a steel ruler -- but it didn't help. Nor does
 the cold I'm coming down with I suppose.

 Anyone see the error, and feel like pointing it out to me?

 Martin S

 ?php
 print H2BJoin the lists/b/H2;
 print FORM Method=POST
 ACTION='http://www.bollmora.org/mailman/subscribe/' . $lista . 'br';
 print Your E-mail address: INPUT type=\Text\ name=\email\
size=\30\
 value=\\br;
 print Your Name (optional): INPUT type=\Text\ name=\fullname\
 size=\30\ value=\\brbr;
 print Lista: select name=\lista\ /;
 print option value=\tvl_bollmora.org\Tävling/option;
 print option value=\jpg_bollmora.org\JGP/option;
 print option value=\styrelse_bollmora.org\Styrelse/option;
 print /selectbr;
 print You may enter a privacy password below. This provides only mild
 security, but shouldbr
  prevent others from messing with your subscription. bDo not use a
 valuable password/b as itbr
  will occasionally be emailed back to you in cleartext.brbr
  If you choose not to enter a password, one will be automatically
generated
 for you, and it willbr
  be sent to you once you've confirmed your subscription. You can always
 request a mail-backbr
  of your password when you edit your personal options.brbr;
  print Would you like to receive list mail batched in a daily digest?
(You
 may choose NoMail after you join.)BRbr;
  print input type=radio name=\digest\ value=\0\ CHECKED No input
 type=radio name=\digest\ value=\1\ Yesbrbr;
  print INPUT type=\Submit\ name=\email-button\
value=\Subscribe\;
  print /FORM;
  ?

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