eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.wwwnie wyświetlasię value z <input>aRe: nie wyświetlasię value z <input>a
  • Data: 2009-06-08 11:14:33
    Temat: Re: nie wyświetlasię value z <input>a
    Od: j...@p...onet.pl szukaj wiadomości tego autora
    [ pokaż wszystkie nagłówki ]

    > Linka daj.
    Nie mogę, bo mam tylko na localhost. Załączam całego <form>a (zawiera kod
    PHP5):

    <form name="announcement" action="submit_announcement.php" method="POST">
    <input id="full_announcement_no" name="full_announcement_no"
    type="hidden" value="<?php echo $fullAnnouncementNo; ?>">
    <!-- dane klienta: -->
    <fieldset>
    <legend>Twoje dane</legend>
    <table border="0">
    <tbody>
    <tr>
    <td><label for="client_name">Nazwa / imię i
    nazwisko:</label></td>
    <td>
    <input type="text" id="client_name"
    name="client_name" <?php echo errorClass('client_name'); ?> cols="45"
    maxlength="45" style="width: 45ex" value="<?php echo valueOf
    ('client_name', 'clientName'); ?>" onblur="validateText(this);">
    </td>
    </tr>
    <tr>
    <td><label for="client_email" class="obligatory">E-
    mail:</label></td>
    <td>
    <input type="text" id="client_email"
    name="client_email" <?php echo errorClass('client_email'); ?> cols="50"
    maxlength="50" style="width: 50 ex" value="<?php echo valueOf
    ('client_email', 'clientEmail'); ?>" onblur="validateEmail
    (this, 'client_email_error');">&nbsp;<span class="tip">konieczny albo e-
    mail...</span>
    <span id="client_email_error"
    class="error_message"></span>
    <?php echo validationError('client_email'); ?>
    </td>
    </tr>
    <tr>
    <td><label class="obligatory">Telefony
    komórkowe:</label></td>
    <td>
    <div>
    <input type="text" id="client_mobile1"
    name="client_mobile1" <?php echo errorClass('client_mobile1'); ?> cols="20"
    maxlength="20" style="width: 20ex" value="<?php echo valueOf
    ('client_mobile1', 'clientMobile1'); ?>" onblur="validateMobile
    (this, 'client_mobile1_error');">&nbsp;<span class="tip">...albo telefon
    komórkowy...</span>
    <span id="client_mobile1_error"
    class="error_message"></span>
    <?php echo validationError
    ('client_mobile1'); ?>
    </div>
    <div>
    <input type="text" id="client_mobile2"
    name="client_mobile2" <?php echo errorClass('client_mobile2'); ?> cols="20"
    maxlength="20" style="width: 20ex" value="<?php echo valueOf
    ('client_mobile2', 'clientMobile2'); ?>" onblur="validateMobile
    (this, 'client_mobile2_error');">
    <span id="client_mobile2_error"
    class="error_message"></span>
    <?php echo validationError
    ('client_mobile2'); ?>
    </div>
    </td>
    </tr>
    <tr>
    <td><label class="obligatory">Telefony
    stacjonarne:</label></td>
    <td>
    <div>
    (<input type="text" id="client_direction1"
    name="client_direction1" <?php echo errorClass('client_direction1'); ?>
    cols="5" maxlength="5" style="width: 5ex" value="<?php echo valueOf
    ('client_direction1', 'clientDirection1'); ?>" onblur="validateDirection
    (this, 'client_direction1_error');">) -
    <input type="text" id="client_phone1"
    name="client_phone1" <?php echo errorClass('client_phone1'); ?> cols="20"
    maxlength="20" value="<?php echo valueOf('client_phone1', 'clientPhone1'); ?>"
    onblur="validatePhone(this, 'client_phone1_error');">&nbsp;<span
    class="tip">...albo telefon</span>
    <span id="client_direction1_error"
    class="error_message"></span>
    <span id="client_phone1_error"
    class="error_message"></span>
    <?php echo validationError
    ('client_direction1'), validationError('client_phone1'); ?>
    </div>
    <div>
    (<input type="text" id="client_direction2"
    name="client_direction2" <?php echo errorClass('client_direction1'); ?>
    cols="5" maxlength="5" style="width: 5ex" value="<?php echo valueOf
    ('client_direction2', 'clientDirection2'); ?>" onblur="validateDirection
    (this, 'client_direction2_error');">) -
    <input type="text" id="client_phone2"
    name="client_phone2" cols="20" maxlength="20" value="<?php echo valueOf
    ('client_phone2', 'clientPhone2'); ?>" onblur="validatePhone
    (this, 'client_phone2_error');"><br>
    <span id="client_direction2_error"
    class="error_message"></span>
    <span id="client_phone2_error"
    class="error_message"></span>
    <?php echo validationError
    ('client_direction2'), validationError('client_phone2'); ?>
    </div>
    </td>
    </tr>
    <tr>
    <td><label for="client_town">Miejscowo&para;ć:</label></td>
    <td>
    <input type="text" id="client_town"
    name="client_town" <?php echo errorClass('client_town'); ?> cols="25"
    maxlength="25" style="width: 25ex" value="<?php echo valueOf
    ('client_town', 'clientTown'); ?>" onblur="validateText(this);">
    </td>
    </tr>
    </tbody>
    </table>
    </fieldset>
    <p>
    Możesz też <strong>przejrzeć swoje ogłoszenia</strong>:<br>
    <input id="show_announcements" name="show_announcements"
    type="button" class="normal_button" value="Pokaż moje ogłoszenia"
    onclick="showMyAnnouncements();" >
    </p>
    <!-- dane nieruchomo&para;ci: -->
    <fieldset>
    <legend>Dane nieruchomo&para;ci</legend>
    <table id="property_fields" border="0">
    <tbody>
    <tr>
    <td><label class="obligatory" for="estate_type_id">Rodzaj
    nieruchomo&para;ci</label>:</td>
    <td>
    <select id="property_estate_type_id"
    name="property_estate_type_id" onchange="showPropertyRows();"
    onkeyup="showPropertyRows();" onkeydown="showPropertyRows();">
    <option value="" <?php if (empty
    ($announcement->property_estate_type_id)) { echo 'selected'; } ?>>(wybierz)
    </option>
    <?php echo estateTypesOptions(valueOf
    ('property_estate_type_id')); ?>
    </select><img src="images/asterisk.png">
    </td>
    </tr>
    <tr>
    <td><label for="property_region_id">Województwo:</label></td>
    <td>
    <?php var_dump(valueOf('property_region_id')); ?>
    <select id="property_region_id"
    name="property_region_id">
    <option value="" <?php if (empty
    ($announcement->property_region_id)) { echo 'selected'; } ?>>(wybierz)</option>
    <?php echo regionsOptions(valueOf
    ('property_region_id')); ?>
    </select>
    </td>
    </tr>
    <tr>
    <td><label for="property_town">Miejscowo&para;ć:</label></td>
    <td>
    <?php var_dump(valueOf('property_town')); ?>
    <input type="text" id="property_town"
    name="property_town" <?php echo errorClass('property_town'); ?> cols="25"
    maxlength="25" style="width: 25ex" value="<?php echo valueOf
    ('property_town'); ?>" onblur="validateText(this);">
    </td>
    </tr>
    <tr>
    <td><label for="property_district">Dzielnica:</label></td>
    <td>
    <?php var_dump(valueOf('property_district')); ?>
    <input type="text" id="property_district"
    name="property_district" <?php echo errorClass('property_district'); ?>
    cols="25" maxlength="25" style="width: 25ex" value="<?php echo valueOf
    ('property_district'); ?>" onblur="validateText(this);">
    </td>
    </tr>
    <tr>
    <td><label>Adres:</label></td>
    <td>
    <?php var_dump(valueOf('property_street')); ?>
    Ulica: <input type="text" id="property_street"
    name="property_street" <?php echo errorClass('property_street'); ?> cols="30"
    maxlength="30" style="width: 30ex" value="<?php echo valueOf
    ('property_street'); ?>" onblur="validateText(this);">
    &nbsp;
    Numer domu: <input type="text"
    id="property_house_no" name="property_house_no" <?php echo errorClass
    ('property_house_no'); ?> cols="8" maxlength="8" style="width: 8ex" value="<?
    php echo valueOf('property_house_no'); ?>" onblur="validateText(this);">
    &nbsp;
    Numer mieszkania: <input type="text"
    id="property_flat_no" name="property_flat_no" <?php echo errorClass
    ('property_flat_no'); ?> cols="5" maxlength="5" style="width: 5ex" value="<?
    php echo valueOf('property_flat_no'); ?>" onblur="validateNumber
    (this, 'property_flat_no_error');">
    <span id="property_street_error"
    class="error_message"></span>
    <span id="property_house_no_error"
    class="error_message"></span>
    <span id="property_flat_no_error"
    class="error_message"></span>
    <?php echo validationError('property_street'),
    validationError('property_house_no'), validationError('property_flat_no'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="property_floor_no">Które piętro:</label></td>
    <td>
    <input type="text" id="property_floor_no"
    name="property_floor_no" <?php echo errorClass('property_floor_no'); ?>
    cols="5" maxlength="5" style="width: 5ex" value="<?php echo valueOf
    ('property_floor_no'); ?>" onblur="validateNumber
    (this, 'property_floor_no_error');">
    &nbsp;<span class="tip">(parter = 0)</span>
    <span id="property_floor_no_error"
    class="error_message"></span>
    <?php echo validationError('property_floor_no'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="property_floors">Ile pięter:</label></td>
    <td>
    <input type="text" id="property_floors"
    name="property_floors" <?php echo errorClass('property_floors'); ?> cols="5"
    maxlength="5" style="width: 5ex" value="<?php echo valueOf
    ('property_floors'); ?>" onblur="validateNumber
    (this, 'property_floors_error');">&nbsp;<span class="tip">nie licz&plusmn;c
    parteru</span>
    <span id="property_floors_error"
    class="error_message"></span>
    <?php echo validationError('property_floors'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="property_area">Powierzchnia:</label></td>
    <td>
    <input type="text" id="property_area"
    name="property_area" <?php echo errorClass('property_area'); ?> cols="11"
    maxlength="11" style="width: 11ex" value="<?php echo valueOf
    ('property_area'); ?>" onblur="validateReal
    (this, 'property_area_error');">&nbsp;
    <span id="property_unit_text"
    name="property_unit_text"?>></span>
    <input type="hidden" id="property_unit"
    name="property_unit" value="<?php echo valueOf('property_unit'); ?>">
    <span id="property_area_error"
    class="error_message"></span>
    <?php echo validationError('property_area'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="property_rooms">Liczba pokoi:</label></td>
    <td>
    <input type="text" id="property_rooms"
    name="property_rooms" <?php echo errorClass('property_rooms'); ?> cols="10"
    maxlength="10" style="width: 10ex" value="<?php echo valueOf
    ('property_rooms'); ?>" onblur="validateNumber(this, 'property_rooms_error');">
    <span id="property_rooms_error"
    class="error_message"></span>
    <?php echo validationError('property_rooms'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="property_offices">Liczba
    pomieszczeń:</label></td>
    <td>
    <input type="text" id="property_offices"
    name="property_offices" <?php echo errorClass('property_offices'); ?>
    cols="10" maxlength="10" style="width: 10ex" value="<?php echo valueOf
    ('property_offices'); ?>" onblur="validateNumber
    (this, 'property_offices_error');">
    <span id="property_offices_error"
    class="error_message"></span>
    <?php echo validationError('property_offices'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="property_year_built">Rok budowy:</label></td>
    <td>
    <input type="text" id="property_year_built"
    name="property_year_built" <?php echo errorClass('property_year_built'); ?>
    cols="5" maxlength="5" style="width: 5ex" value="<?php echo valueOf
    ('property_year_built'); ?>" onblur="validateNumber
    (this, 'property_year_built_error');">&nbsp;
    <span class="tip">format: np. <i><?php echo (int)
    date('Y') - 10; ?></i></span>
    <span id="property_year_built_error"
    class="error_message"></span>
    <?php echo validationError('property_year_built'); ?
    >
    </td>
    </tr>
    <tr>
    <td><label for="property_ownership_id">Forma
    własno&para;ci:</label></td>
    <td>
    <select id="property_ownership_id"
    name="property_ownership_id">
    <option value="" <?php if (empty
    ($announcement->property_ownership_id)) { echo 'selected'; } ?>>(wybierz)
    </option>
    <?php echo ownershipOptions(valueOf
    ('property_ownership_id')); ?>
    </select>
    </td>
    </tr>
    <tr>
    <td><label for="property_standard_id">Standard:</label></td>
    <td>
    <select id="property_standard_id"
    name="property_standard_id">
    <option value="" <?php if (empty
    ($announcement->property_standard_id)) { echo 'selected'; } ?>>(wybierz)
    </option>
    <option value="">nie dotyczy</option>
    <?php echo standardsOptions(valueOf
    ('property_standard_id')); ?>
    </select>
    </td>
    </tr>
    <tr>
    <td><label for="property_house">Domek
    letniskowy:</label></td>
    <td>
    <input type="checkbox" id="property_house"
    name="property_house" <?php echo checkedOf('property_house'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="property_buildings">Zabudowania:</label></td>
    <td>
    <input type="checkbox" id="property_buildings"
    name="property_buildings" <?php echo checkedOf('property_buildings'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="property_garrage">Garaż:</label></td>
    <td>
    <input type="checkbox" id="property_garrage"
    name="property_garrage" <?php echo checkedOf('property_garrage'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="property_parking">Miejsce
    parkingowe:</label></td>
    <td>
    <input type="checkbox" id="property_parking"
    name="property_parking" <?php echo checkedOf('property_parking'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="property_kitchen">Widna kuchnia:</label></td>
    <td>
    <input type="checkbox" id="property_kitchen"
    name="property_kitchen" <?php echo checkedOf('property_kitchen'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="property_balcony">Balkon:</label></td>
    <td>
    <input type="checkbox" id="property_balcony"
    name="property_balcony" <?php echo checkedOf('property_balcony'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="property_gas">Gaz:</label></td>
    <td>
    <input type="checkbox" id="property_gas"
    name="property_gas" <?php echo checkedOf('property_gas'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="property_media">Uzbrojona:</label></td>
    <td>
    <input type="checkbox" id="property_media"
    name="property_media" <?php echo checkedOf('property_media'); ?>>
    </td>
    </tr>
    <tr>
    <td><label>Umeblowanie:</label></td>
    <td>
    <?php echo furnitureInputs(valueOf
    ('property_furniture_type_id')); ?>
    <input type="radio"
    name="property_furniture_type_id" value="" <?php echo checkedOf
    ('property_furniture_type_id'); ?>>nie dotyczy
    </td>
    </tr>
    <tr>
    <td><label>Wyposażenie:</label></td>
    <td>
    <input type="checkbox" id="property_phone"
    name="property_phone" <?php echo checkedOf('property_phone'); ?
    >>telefon</input>
    <input type="checkbox" id="property_internet"
    name="property_internet" <?php echo checkedOf('property_internet'); ?
    >>Internet</input>
    <input type="checkbox"
    id="property_washing_machine" name="property_washing_machine" <?php echo
    checkedOf('property_washing_machine'); ?>>pralka</input>
    <input type="checkbox" id="property_refrigerator"
    name="property_refrigerator" <?php echo checkedOf('property_refrigerator'); ?
    >>lodówka</input>
    </td>
    </tr>
    <tr>
    <td><label for="property_guard">Ochrona:</label></td>
    <td>
    <input type="checkbox" id="property_guard"
    name="property_guard" <?php echo checkedOf('property_guard'); ?>>
    </td>
    </tr>
    <tr>
    <td><label
    for="property_building_type_id">Budownictwo:</label>
    </td>
    <td>
    <?php echo buildingTypesInputs(valueOf
    ('property_building_type_id')); ?>
    <input type="radio"
    name="property_building_type_id" value="">nie dotyczy
    </td>
    </tr>
    <!--
    <tr>
    <td><label>Zdjęcia / filmy</label>:</td>
    <td>
    <input type="hidden" id="pictures" name="pictures"
    value="">
    <select id="property_pictures"
    name="property_pictures">
    <option value="" selected>(wybierz)
    </option>
    php echo picturesOptions
    ($fullAnnouncementNo);
    </select>
    &nbsp;
    <input type="button" id="show_picture"
    name="show_picture" value="Pokaż wybrane" onclick="showPicture(php echo
    $fullAnnouncementNo; );">&nbsp;
    <input type="button" id="remove_picture"
    name="remove_picture" value="Usuń wybrane" onclick="removePicture();">
    &nbsp;<span class="tip">wybierz z listy, a potem
    naci&para;nij przycisk</span>
    php echo validationError('property_pictures');
    <br>
    <input type="button" id="add_picture"
    name="add_picture" value="Dodaj nowe:" onclick="addPicture();">&nbsp;
    <input type="file" id="picture" name="picture" php
    echo errorClass('picture'); onblur="validateFileName(this);">
    &nbsp;<span class="tip">podaj plik, a potem
    naci&para;nij przycisk "Dodaj nowe"</span>
    php echo validationError('picture');
    </td>
    </tr>
    -->
    </tbody>
    </table>
    </fieldset>
    <!-- dane ogłoszenia: -->
    <fieldset>
    <legend>Dane ogłoszenia</legend>
    <table id="announcement_fields" border="0">
    <tbody>
    <tr>
    <td><label class="obligatory" for="offer_type_id">Rodzaj
    oferty</label>:</td>
    <td>
    <select id="offer_type_id" name="offer_type_id"
    onchange="showAnnouncementRows();" onkeyup="showAnnouncementRows();"
    onkeydown="showAnnouncementRows();">
    <option value="" <?php if (empty
    ($announcement->offer_type_id)) { echo 'selected'; } ?>>(wybierz)</option>
    <?php echo offerTypesOptions(valueOf
    ('offer_type_id')); ?>
    </select><img src="images/asterisk.png">
    </td>
    </tr>
    <tr>
    <td><label>Kiedy ważne:</label></td>
    <td>
    od <input type="text" id="valid_from"
    name="valid_from" <?php echo errorClass('valid_from'); ?> cols="10"
    maxlength="10" style="width: 10ex" value="<?php echo valueOf('valid_from'); ?
    >" onblur="validateDate(this, 'valid_from_error');">
    <a href="javascript:show_calendar
    ('document.announcement.valid_from',
    document.announcement.valid_from.value);"><img src="images/cal.gif" width="16"
    height="16" border="0" alt="Kalendarz"></a>
    - do <input type="text" id="valid_to"
    name="valid_to" <?php echo errorClass('valid_to'); ?> cols="10" maxlength="10"
    style="width: 10ex" value="<?php echo valueOf('valid_to'); ?>"
    onblur="validateDate(this, 'valid_to_error');">
    <a href="javascript:show_calendar
    ('document.announcement.valid_to',
    document.announcement.valid_to.value);"><img src="images/cal.gif" width="16"
    height="16" border="0" alt="Kalendarz"></a>
    &nbsp; <span class="tip">format: np. <i><?php echo
    date('Y.m.d'); ?></i></span>
    <span id="valid_from_error"
    class="error_message"></span>
    <span id="valid_to_error"
    class="error_message"></span>
    <?php echo validationError('valid_from'),
    validationError('valid_to'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="price">Cena dla oferty:</label></td>
    <td>
    <input type="text" id="price" name="price" <?php
    echo errorClass('price'); ?> cols="14" maxlength="14" style="width: 14ex"
    value="<?php echo valueOf('price'); ?>" onblur="validatePrice
    (this, 'price_error');">
    <select id="currency_id" name="currency_id">
    <option value="">(wybierz)</option>
    <?php echo currenciesOptions(valueOf
    ('currency_id'), empty($fullAnnouncementNo)); ?>
    </select>
    /
    <select id="price_for_id" name="price_for_id" >
    <option value="">(wybierz)</option>
    <?php echo priceForOptions(valueOf
    ('offer_type_id'), valueOf('price_for_id')); ?>
    </select>
    <span id="price_error" class="error_message"></span>
    <?php echo validationError('price'), validationError
    ('currency_id'); ?>
    </td>
    </tr>
    <tr>
    <td><label for="price_negotiable">Cena do
    uzgodnienia:</label></td>
    <td>
    <input type="checkbox" id="price_negotiable"
    name="price_negotiable" <?php echo checkedOf('price_negotiable'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="caution">Kaucja:</label></td>
    <td>
    <input type="checkbox" id="caution" name="caution"
    <?php echo checkedOf('caution'); ?>>
    </td>
    </tr>
    <tr>
    <td><label for="remarks">Uwagi:</label></td>
    <td>
    <textarea id="remarks" name="remarks" <?php echo
    errorClass('remarks'); ?> cols="40" rows="4" onblur="validateText(this);"><?
    php echo valueOf('remarks'); ?></textarea>
    <span id="remarks_error"
    class="error_message"></span>
    <?php echo validationError('remarks'); ?>
    </td>
    </tr>
    </tbody>
    </table>
    </fieldset>
    <script type="text/javascript">
    var propertyFieldsRows = document.getElementById
    ("property_fields").getElementsByTagName("tr");
    var announcementFieldsRows = document.getElementById
    ("announcement_fields").getElementsByTagName("tr");
    </script>
    <!-- TUTAJ CAPTCHA -->
    <p>
    Teraz <?php echo empty($fullAnnouncementNo) ? 'zatwierdĽ
    ogłoszenie' : 'zapamiętaj zmiany'; ?>, a przejdziesz do informacji o
    płatno&para;ci:<br>
    <input id="submit_announcement" name="submit_announcement"
    type="button" class="default_button" value="Zatwierdzam ogłoszenie"
    onclick="submitAnnouncement();">&nbsp;
    <input id="clear_all" name="clear_all" type="button"
    class="normal_button" onclick="clearAll();" value="Wyczy&para;ć pola">
    </p>
    </form>

    --
    Wysłano z serwisu OnetNiusy: http://niusy.onet.pl

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: