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

  • SEARCH
  • Home
  • 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 731793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:04:07+00:00 2026-05-14T07:04:07+00:00

<script type=’text/javascript’> $(document).ready(function() { $(#specific_consultant_yes).click(function() { $(‘.specific’).show(‘slow’); $.post(<?php echo $this->url(array(‘controller’=>’appointment’, ‘action’ =>’available’),’default’,true)?>,{app_date:$(#App_date).val(),consultant:$(#Consultants).val()} ,function(data){ $(.new).html(data);

  • 0
<script type='text/javascript'>
$(document).ready(function() {
 $("#specific_consultant_yes").click(function() {
$('.specific').show('slow');

$.post("<?php echo  $this->url(array('controller'=>'appointment', 'action' =>'available'),'default',true)?>",{app_date:$("#App_date").val(),consultant:$("#Consultants").val()} ,function(data){
$(".new").html(data);
});

 $("#App_date").change(function() {
$.post("<?php echo  $this->url(array('controller'=>'appointment', 'action' =>'available'),'default',true)?>",
                        {app_date:$("#App_date").val(),consultant:$("#Consultants").val()} ,function(data){
$(".new").html(data);
});
});

 $("#Consultants").change(function() {
$.post("<?php echo  $this->url(array('controller'=>'appointment', 'action' =>'available'),'default',true)?>",{app_date:$("#App_date").val(),consultant:$("#Consultants").val()} ,function(data){
$(".new").html(data);
});
});

});


 $("#specific_consultant_no").click(function() {
$('.specific').hide('slow');
});

});
</script>
  <form name='update_form' id='update_form' method='POST' action="<?php echo $this->url(array('controller' => 'appointment', 'action' =>'updatesave'));?>">

    <fieldset name='Appointment'>
                        <legend>New Appointment Details</legend>
                      <div class='field50Pct'>
                        <div class='fieldItemLabel'>
                        <label for=''>Specific Consultant</label>
                        </div>
                        <div class=fieldItemValue'>
                        <input type='radio' name='specific_consultant' id='specific_consultant_yes' value='yes'>Yes
                        <input type='radio' name='specific_consultant' id='specific_consultant_no' value='no'>No
                        </select>
                        </div>
                        </div>
                        <div class='clear'></div>
                        <div class='specific' style='display:none'>
                        <div class='field50Pct'>
                        <div class='fieldItemLabel'>
                        <label for=''>Appointment Date</label>
                        </div>
                        <div class=fieldItemValue'>
                        <select name='app_date' id='App_date'>
                        <?php
                        $today = time();
                        for($i = 0 ;$i < 15; $i++)
                        {
                        $date_t = date('d-M-Y',$today);
                        $date_v = date('d-m-Y',$today);
                        ?>
                        <option value="<?php echo $date_t ?>"><?php echo $date_t ?></option>
                        <?php
                        $today = $today+(1*24*60*60);
                        } ?>
                        </select>
                        </div>
                        </div>
                        <div class='field50Pct'>
                        <div class='fieldItemLabel'>
                        <label for=''>Consultant</label>
                        </div>
                        <div class=fieldItemValue'>
                          <select name='consultants' id='Consultants'>
                        <?php foreach($this->consultantlist as $consultantlist){ ?>
                        <option value="<?php echo $consultantlist->getId() ?>"><?php echo $consultantlist->getFirstName() ?>  <?php echo $consultantlist->getMiddleName() ?>  <?php echo $consultantlist->getLastName() ?></option>
    <?php } ?>
                        </select>
                        </div>
                        </div>

                        <div class='clear'></div>
                        <br/>
                        <div class='new'>

                        </div>
                        <div class='clear'></div>
                        <br/>
                        </div>
                        </fieldset>
                        <center><input type='submit' name='update_appointment' value='Update Appointment' onclick='return confirmSubmit();'></center>
                        </div>
                        </form>

and
available.phtml has code like

<?php

                $afternoon_time = '11:00';
                $myresult  .=   "<input type='text' name='slotddd' value='hai'>";

echo $myresult;

?>

the extra form element is getting added properly and its getting displayed..but when i submit the form..the element si not recognized in the $_POST …how to solve this problem>

  • 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-14T07:04:07+00:00Added an answer on May 14, 2026 at 7:04 am

    Where is the 1 item with class “new” located? Is it inside the form? If its not located inside the form then it won’t be included.

    For example:

    <form action="/post.php" method="POST">
      <input name="somename" value="somevalue"/>
    </form>
    

    Is not equal to:

    <form action="/post.php" method="POST">
    </form>
    <input name="somename" value="somevalue"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 378k
  • Answers 378k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer XML Take away the quotations from "bite.swf" <Lt TITLE="stage.stageHeight">bite.swf</Lt> SWF… May 14, 2026 at 9:14 pm
  • Editorial Team
    Editorial Team added an answer class Person(models.Model): first_name = models.CharField( ... ) last_name = models.CharField(… May 14, 2026 at 9:14 pm
  • Editorial Team
    Editorial Team added an answer After creating the textarea with load(), you have to call… May 14, 2026 at 9:14 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.