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 8144507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:24:07+00:00 2026-06-06T13:24:07+00:00

I’m trying to connect forms using one of the inputs as a form of

  • 0

I’m trying to connect forms using one of the inputs as a form of primary key.

For example,

—first form where the primary key is taken

form1.php 

—second form, where page1 is based on an input from form1

form2.php?page1=primary key 

—third form, where page1 is based on an input from form2

form3.php?page2=primary key 

—fourth form, where page2 is page1

form4.php?page3=primary key 

—fourth form, where page3 is page2

and so on, until the last page. My question is how do i connect them? how do i retrieve the primary and pass it on all the form involved? So far I can only pass the primary key up to form2, when it reaches form3, it disappears.

By the way, after each form is accomplished, it proceeds to a process page.

—below is the code for a sample form

<form id="form1" name="form1" method="post" action="eval_2.php">
            <table width="100%" border="0" cellpadding="2" cellspacing="0">

            <tr>
            <td width="70%">
            <strong>1. Quality of Work </strong><br />
            - refers to his/her ability to work with thoroughness.
            </td>
            <td align="center"> <select name="qualityremark">
              <option>Select Remark</option>
              <option>O</option>
              <option>VS</option>
              <option>S</option>
              <option>US</option>
              <option>P</option>
            </select></td>
            </tr>

            <tr>
            <td width="70%" height="10%"> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; a. Works outstandingly accurate and complete in details</td>
            <td width="30%" align="left"> O - Outstanding </td>
            </tr>
            <tr>
            <td width="70%"> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; b. Does thorough work; rarely commit errors</td>
            <td width="30%" align="left"> VS - Very Satisfactory </td>
            </tr>
            <tr>
            <td width="70%"> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; c. Fairly completes work with few errors</td>
            <td width="30%" align="left"> S - Satisfactory </td>
            </tr>
            <tr>
            <td width="70%"> &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; d. Work is often incomplete, inaccurate</td>
            <td width="30%" align="left"> US - Unsatisfactory</td>
            </tr>
            <tr>
            <td width="70%"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;e. Very careless work; errors frequently repeated</td>
            <td width="30%" align="left"> P - Poor</td>
            </tr>
            <tr>
            <td> Comments: </td>
            <td></td>
            </tr>
            <tr>
            <td><textarea name="qualitycomment" cols="80" rows="5" id="qualitycomment"></textarea></td>
            </tr>
            </table>    
            <tr>
            <td></td>
            <td><div align="right">
            <a href="performanceeval.php">Back</a>&nbsp;|&nbsp;
            <!--<a href="performanceeval3.php">Next</a> -->
            <input type="submit" value="Next" name="next" id="next" class="silver_button"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
            </tr><br /> 
            </form> 

—below is the code for the process page

require_once("dbconnect_gentemplate.php");
require_once("attendanceClass.php");

$newAcct= new attendance();
$m=$newAcct->eval_2();

$current=$_GET['page1'];


header("Location: performanceeval3.php?page2=$current");

—below is the code for a function

function eval_2(){ //page 2

$current=$_GET['page1'];

// $command="select recentact from ojt_evaluation";
// $commando=mysql_query($command) or die("Error ".mysql_error());
// $commander=mysql_fetch_array($commando);

// $current=$commander['recentact'];
// $cur=md5($current);

 if(isset($_POST['next'])){ 
    $qualityremark=$_POST['qualityremark'];
    $qualitycomment=$_POST['qualitycomment'];

    if(trim($qualityremark)=="") return  "<p>Error creating account;blank qualityremark</p>";

    $sql="update ojt_evaluation set qualityremark='$qualityremark', qualitycomment='$qualitycomment' where student='$current'";

    $query=mysql_query($sql)or die ("Error".mysql_error());
    }
    // header("Location: performanceeval3.php?session=$current");
}

Where did I go wrong? What should I do? Help!

  • 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-06-06T13:24:09+00:00Added an answer on June 6, 2026 at 1:24 pm

    i think you didn’t pass any query string

    in the below variable will be null there is no parameter value assign to page1

     $current=$_GET['page1'];
    

    and one more think the submit button will click the action of form in loaded

    may u try this

    <form id="form1" name="form1" method="post" action="eval_2.php?page1=form1">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.