Branch: Tag:

2000-12-02

2000-12-02 16:11:49 by Martin Nilsson <mani@lysator.liu.se>

Minor changes in input(...) so it can be called for image-maps-forms.

Rev: server/etc/modules/Variable.pmod/module.pmod:1.41

1: - // $Id: module.pmod,v 1.40 2000/11/27 13:45:06 nilsson Exp $ + // $Id: module.pmod,v 1.41 2000/12/02 16:11:49 nilsson Exp $      #include <module.h>   #include <roxen.h>
1282:    return ({ (strlen(warning)?warning:0), port });   }    - static string input(string name, string value, int size, + string input(string name, string value, int size,    void|mapping(string:string) args, void|int noxml)   {    if(!args)
1291:    args+=([]);       args->name=name; +  if(value)    args->value=value; -  if(!args->size) +  if(!args->size && size)    args->size=(string)size;       string render="<input";