473,761 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

call another php page into php

sanjay123456
125 New Member
Sir

I want to call another php page in to a php page

[PHP]

<?php
if($counter==$_ SESSION['count'])
{
<form name="examinati on" id="examination " method="post" action="http://localhost/finish.php" >
}
?>
[/PHP]


this is not work any error in this code ?


sanjay
Nov 1 '06 #1
4 5018
ronverdonk
4,258 Recognized Expert Specialist
Firstly, this is the same question you asked 3 weeks ago, where you received a reply and you never answered to that: http://www.thescripts.com/forum/thread548218.html
It seems common decency to our members not to ignore a reply to your request, but to answer it before going on to a new thread. So, why are you asking this again in a new thread?

About the question: when it is just a sample of the first line of your form, that is fine.

But the code, as you show it, will not work, because you need a trigger to submit the form, something like a JS subit function or an <input type='submit' ,

And maybe you'd also want some input fields. Also, coding the action= like you do makes it difficult to port to another site because you defined the address explicitely instead of action="finish. php".

Ronald :cool:
Nov 1 '06 #2
sanjay123456
125 New Member
Dear Ronald ,

sorrry for start a new thread
I am using following correction code but its not work;


[PHP]

<?php
if($counter==$_ SESSION['count'])
{
<form name="examinati on" id="examination " method="post" action="http://localhost/finish.php" >
<input type="submit" name="quit" VALUE="quit" onClick="incr(t his.form)">
}
?>
<SCRIPT LANGUAGE="JavaS cript">
function incr(form){
window.location .href = "http://localhost/finish.php";
}


[/PHP]



sanjay
Nov 1 '06 #3
ronverdonk
4,258 Recognized Expert Specialist
This is not going to work at all! Is this still what you wanted to do in the previous thread?? I.e. displaying courses by number and incrementing after each course taken? Because that form worked when it was posted.
Later MySQL code was added and the logic got all mixed up, that's why it did not work.

Are you saying that you want to do the same piece of work all over again in this thread?

Ronald :cool:
Nov 1 '06 #4
sanjay123456
125 New Member
Sir

i make a online test paper
i want that if number of question means $counter= session[count] then automatically call the finish.jsp on the same page of last thread where we increment
session[count] .


sanjay
Nov 2 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
5731
by: Martin Waller | last post by:
Hello, I've been playing with the idea of just how to use an ASP page to provide a remote function call. In an ideal world this would be a web service but how can you do it if restricted to ASP 3.0 ? Idea 1 was to write an ASP page that accepted arguments using the classic ?X=1&Y=2 type of strings and have the page return an ADO disconnected record set containing the results of the action. This is call very well, and works, but you do...
2
1954
by: Chris Michael | last post by:
Hello everybody, Newbie here. I've been working on this for the last two days and I can't figure out where this problem is. I think it's something so obvious, but I can't see it! OK, firstly in a very simple page (please see www.intomobiles.com/test3.htm - it just displays the code that i use in an asp page) I call a function "processForm". The actual form is described in an asp page and is SSI linked to the page (for the full...
0
414
by: Eugene Safrankow | last post by:
Hello All! I've encountered with the error when I call a method of dependency library (written in managed VC++) from Smart Client placed on a web page. In general, I make a call to the Windows function and I get from GetLastError – "<127> The specified procedure could not be found" error. Below is more detailed information about the problem.
4
4291
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage I know I need to call a function that will save data but I'm not sure exactly when to call this function. I've tried two ways and both seem to have 'gotcha's':
6
12286
by: grist2mill | last post by:
I want to create a standard tool bar that appears on all pages that is a control. The toolbar has a button 'New'. What I wolud like when the user clicks on 'New' depends on the page they are on. I would like to do this by defining a NewFunc() that is different in each (code-behind) page which is called by the standard 'New' button in the toolbar. How can I get this to work? So far I have the following (which doesnt work). When the user...
5
4199
by: Stephen Barrett | last post by:
I have read many threads related to async fire and forget type calls, but none have addressed my particular problem. I have a webpage that instantiates a BL object and makes a method call. The BL object method actually sets up a delegate and calls a private method asynchronously and immediately returns back to the web page. The problem I am having is that the async call never happens. I added a quick logging call immediately as the...
4
3223
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so the page can carry on rendering whilst the call is taking place and also returning the ASP.NET worker thread to service another page request (for scalability). I have developed a very basic asynchronous object (for testing, that reproduces the same...
11
11534
by: yangsuli | last post by:
i want to creat a link when somebody click the link the php script calls a function,then display itself :) i have tried <a href=<? funtion(); echo=$_server ?>text</a> but it will call the function whether i click the link then i tried this (using forms)
6
12505
by: Steve Richter | last post by:
what with the website solution structure not having a namespace, how does the class of one website .aspx page class reference the class of another page in the same website? I have two pages. _Default.aspx and Default2.aspx. How would I call a static or instance method in Default2 from _Default ? assuming the answer is to qualify with the namespace, the question is what is the namespace of the two pages?
0
9554
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.