SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ajax works in ie but not in others

    i am trying this
    formpage.php
    <form action=xyz.php method='post'>
    <div onclick="do_ajax(1,div1,2')" style="cursorointer;float:left;">Get Fields</div>

    <div id='div1'> </div>

    </form>
    //ajax calls ajaxpage.php

    in ajaxpage.php i have

    ....
    <input type="hidden" name="sth1" value="<?php echo $id; ?>"/>

    that hidden filed will be filled with in that div1...

    now it works when button is clicked the input field is displayed inside that page(initial form page)
    but in process page if i do
    <?php
    $value=$_POST['sth1'];

    it says sth1 is not defined...

    it works in IE but not in Firefox and others...

    thanks for help

  2. #2
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no edit delete button...here

    i got it working thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •