473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

call another php page into php

sanjay123456
125 100+
Sir

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

[PHP]

<?php
if($counter==$_SESSION['count'])
{
<form name="examination" 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 5004
ronverdonk
4,258 Expert 4TB
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 100+
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="examination" id="examination" method="post" action="http://localhost/finish.php" >
<input type="submit" name="quit" VALUE="quit" onClick="incr(this.form)">
}
?>
<SCRIPT LANGUAGE="JavaScript">
function incr(form){
window.location.href = "http://localhost/finish.php";
}


[/PHP]



sanjay
Nov 1 '06 #3
ronverdonk
4,258 Expert 4TB
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 100+
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
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...
2
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...
0
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...
4
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...
6
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...
5
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...
4
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...
11
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...
6
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....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.