как из POST запроса сделать КНОПКУ или ЛИНК

Discussion in 'PHP' started by ufalog, 8 Feb 2010.

  1. ufalog

    ufalog Elder - Старейшина

    Joined:
    28 Jul 2007
    Messages:
    174
    Likes Received:
    6
    Reputations:
    -5
    имею такой пост запрос который отправляется с

    qsform_more_opt=0&choise=4&spr_realty_type[0]=2&realty_type[0][]=10&country=&region=&city=&spr_description[0]=1&description[0][]=&min_payment=&max_payment=&spr_description[1]=2&description[1][]=&spr_description[2]=3&description[2][]=
     
  2. imajo.ati

    imajo.ati Banned

    Joined:
    21 Feb 2008
    Messages:
    232
    Likes Received:
    62
    Reputations:
    8
    PHP:
    <form method="POST" action="адрес_страницы" id="post_0">
    <input type="hidden" name="qsform_more_opt" value="0">
    <input type="hidden" name="choise" value="4">
    <input type="hidden" name="spr_realty_type[]" value="2">
    <input type="hidden" name="realty_type[][]" value="10">
    <input type="hidden" name="country" value="">
    <input type="hidden" name="region" value="">
    <input type="hidden" name="city" value="">
    <input type="hidden" name="spr_description[]" value="1">
    <input type="hidden" name="description[][]" value="">
    <input type="hidden" name="min_payment" value="">
    <input type="hidden" name="max_payment" value="">
    <input type="hidden" name="spr_description[]" value="2">
    <input type="hidden" name="description[][]" value="">
    <input type="hidden" name="spr_description[]" value="3">
    <input type="hidden" name="description[][]" value="">
    <input type="submit" value="отправить">
    </form>
    <a href="javascript:document.getElementById( 'post_0' ).submit();">отправить</a>
    <pre>
    <?php print_r($_POST); ?>
     
    1 person likes this.