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 How old are you? is already in use.
Sending you back to the editor".

[edit]
hmm.. how about this work-around: split the language files, so redirect_header() will look like
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?

Login

Who's Online

253 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 253


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits