Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Heal 20.10.2004 16:56
Точнее:^if(def $form:first_name && def $form:last_name && def $form:e_mail && def $form:wordpass && def $form:year && def $form:month && def $form:day && def $form:height && def $form:weight && def $form:hair && def $form:eyes && def $form:languages && def $form:maritual_status && def $form:children && def $form:education && def $form:major && def $form:smoker && def $form:drinker && def $form:religion && def $form:about_me && def $form:look_for && def $form:address && def $form:zip_code && def $form:u_state && def $form:city && def $form:country && def $form:home_phone && def $form:cell_phone){ ^if(def $form:photo1){ $photo1_url[/user_photo/${form:e_mail}${form:year}.^file:justext[$form:photo1.name]] }{ ADD PHOTO } ^if(def $form:photo2){ $photo2_url[/user_photo/${form:e_mail}${form:month}.^file:justext[$form:photo2.name]] }{ $photo2_url[none] } ^if(def $form:photo3){ $photo3_url[/user_photo/${form:e_mail}${form:day}.^file:justext[$form:photo3.name]] }{ $photo3_url[none] } ^connect[$connect_string]{^void:sql{insert into #нужная(first_name, last_name, e_mail, wordpass, date_birth, height, weight, hair, eyes, languages, maritual_status, children, education, major, smoker, drinker, religion, about_me, look_for, address, zip_code, u_state, city, country, home_phone, cell_phone, photo1_url, photo2_url, photo3_url, reg_date) values ('$form:first_name', '$form:last_name', '$form:e_mail', '$form:wordpass', '${form:year}-${form:month}-${form:day}', '$form:height', '$form:weight', '$form:hair', '$form:eyes', '$form:languages', '$form:maritual_status', '$form:children', '$form:education', '$form:major', '$form:smoker', '$form:drinker', '$form:religion', '$form:about_me', '$form:look_for', '$form:address', '$form:zip_code', '$form:u_state', '$form:city', '$form:country', '$form:home_phone', '$form:cell_phone', '$photo1_url', '$photo2_url', '$photo3_url', '$now.year-$now.month-$now.day') }} ^form:photo1.save[binary;$photo1_url] ^form:photo2.save[binary;$photo2_url] ^form:photo3.save[binary;$photo3_url] $response:location[/profile/] }Выдает ошибку: 'save' undefined method [parser.runtime]