Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7060055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:18:24+00:00 2026-05-28T04:18:24+00:00

<table border=1> <tr> <th> SR No.<br /> </th> <th> Name </th> <th> Address </th>

  • 0
                                <table border="1">
                                    <tr>
                                        <th>
                                            SR No.<br />
                                        </th>
                                        <th>
                                            Name
                                        </th>
                                        <th>
                                            Address
                                        </th>
                                        <th>
                                            Area
                                        </th>
                                        <th>
                                            City
                                        </th>
                                        <th>
                                            Contact No.
                                        </th>
                                        <th>
                                            Volunteer List
                                        </th>
                                        <th>
                                            Bird Namea
                                        </th>
                                        <th>
                                            Status
                                        </th>
                                        <th>
                                            Send SMS
                                        </th>
                                    </tr>
                                    <?php
                                        while($row = mysql_fetch_array($pager->result))
                                        {
                                    ?>
                                    <tr>
                                        <td>
                                            <?php echo $row['InqID']; ?>
                                        </td>
                                        <td>
                                            <?php echo $row['InqFromName']; ?>
                                        </td>
                                        <td>
                                            <?php echo $row['InqFromAddress']; ?>
                                        </td>
                                        <td>
                                            <?php echo $row['InqArea']; ?>
                                        </td>
                                        <td>
                                            <?php echo $row['InqCity']; ?>
                                        </td>
                                        <td>
                                            <?php echo $row['InqContactNo']; ?>
                                        </td>
                                        <td>
                                        <select name="volunteerSelect1" id="volunteerSelect1">
                                            <option value="" selected="selected">Please Select Volunteer</option>
                                            <?php
                                                $select="SELECT * FROM tran_ngovolent where ngovolentNGOCode=".$ngoSelectId;
                                                //echo $select;
                                                $result=mysql_query($select);
                                                while($rowBird=mysql_fetch_array($result))
                                                {
                                                    echo"<option value=".$rowBird['ngovolentMobile']." id='volmobile'>".$rowBird['ngovolentName']."</option>";
                                                }
                                            ?>
                                        </select>
                                        </td>
                                        <td>
                                            <?php 
                                                $birdID=$row['InqBirdType'];
                                                $birdSelect="SELECT Bird_Name FROM mst_bird WHERE Bird_Code=".$birdID;
                                                $result=mysql_query($birdSelect);
                                                while($bird_name=mysql_fetch_array($result))
                                                {
                                                    $birdname=$bird_name['Bird_Name'];
                                                    echo $birdname;
                                                }
                                            ?>
                                        </td>
                                        <td>
                                            <?php
                                                $inqStatus=$row['InqStatus'];
                                                if($inqStatus==0)
                                                {
                                                    echo "<a href='index.php?id=".$row['InqID']."&status=status&page=".$pageid."' onclick='return confirmAction()'>Pending</a>";

                                                }else
                                                {
                                                    echo "Finished";
                                                }
                                            ?>
                                        </td>
                                        <td>
                                            <input type="button" name="SendSMS" value="Send SMS" onclick="smsNgo(<?php echo $birdID;?>,<?php echo "'".$row['InqFromAddress']."'";?>,<?php echo "'".$birdname."'";?>,<?php echo "'".$row['InqCity']."'";?>,<?php echo "'".$row['InqArea']."'";?>,<?php echo "'".$row['InqFromName']."'";?>,<?php echo "'".$row['InqContactNo']."'";?>);return sms()"/> 
                                        </td>
                                    </tr>
                                    <?php
                                        }
                                    ?>
                                    <tr>
                                        <td colspan="10">
                                           <?php echo $pager->show(); ?>
                                        </td>
                                    </tr>      
                                </table>

In this Program i get value from database in my selection box. show this image
enter image description here

In first selection box i got perfect out put in my JavaScript but other one selection box value is null or empty Here is my JavaScript and Ajax code.

function smsNgo(birdno,address,birdname,city,area,name,contact)
{
//document.write(mobile1);  
var ngocontact = document.getElementById("volunteerSelect1").value;
//var ngocontact = selectElement.options[selectElement.selectedIndex].value;

var xmlhttp;
if (window.XMLHttpRequest)
 {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
   {
        //document.getElementById("smsStatus").innerHTML=xmlhttp.responseText;; 
    window.open("http://localhost/goal_bird/admin/edit.php","_self");

   }
  }
 var url="http://www.****.co.in/sendsms.aspx?mobile=******&pass=******&    senderid=SMSIdea&to="+ngocontact+"&msg=Bird id is "+birdno+" "+birdname+" "+name+"     "+address+" "+area+" "+city+" "+contact;
document.write(url);
xmlhttp.open("POST",url,true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send();
setTimeout("location.href='index.php'",2000);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:18:24+00:00Added an answer on May 28, 2026 at 4:18 am

    You can make the volunteerSelect1 name unique by adding some db unique id with it. May be InqID in this case?

    <select name="volunteerSelect_<?php echo $row['InqID']; ?>" 
        id="volunteerSelect_<?php echo $row['InqID']; ?>">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my php, while($info3 = mysql_fetch_array($result3)){ $Name = $info3[Name]; $Address = $info3[Address]; $Age =
CSS table tr {border-bottom:1px solid #008999} HTML <table width=100% cellspacing=0 cellpadding=0> <thead> <tr> <th
How can I make a table with a round border, similar to the photo
I want to create a html table with a 1pt black outer border and
In CSS, you can specify the spacing between table cells using the border-spacing property
So far, I'm doing this programmatically using VB.net/ASP.net: <table cellspacing=0 cellpadding=4 border=0 style=border- width:0px;width:100%;border-collapse:collapse;font-size:12px;>
table { id: long name: string } 1235 Fred 1902 Trever 5123 George 6467
I have a form with three fields Name, Email Address & Password. now i
I'm trying to build a table that is 5x6 dynamically using PHP. Right now
I have a form that looks like this: <form id=addClassesToDoc action=> <table id=classesTable style=border-collapse:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.