1
zer0fill
Variables in language constants?
  • 2003/12/23 21:10

  • zer0fill

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/12/2


I doubt this is possible, but i'll try anyways.

Can i put in variables inside the define() like in language/english/main.php? What i want to do is make error messages along with the user's input. by doing this, the user sees exactly what s/he typed in.

ex: i have an error check for duplicate titles and want to use redirect_header() saying something like "Sorry, title <b>How old are you? is already in use. <br />Sending you back to the editor".

[edit]
hmm.. how about this work-around: split the language files, so redirect_header() will look like
le="color: #000000"><?php redirect_header('edit.php?'.SID.'&action=edit', 7, _MD_FORMWIZ_TITLE_EXISTS1of2.$form->title._MD_FORMWIZ_TITLE_EXISTS2of2);


Is this how everyone else does it?