473,788 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem while calling series of pages

254 Contributor
Hello Everyone!

I have a php page called smarks.php which calls a js page selectclass.js which in return calls getsubject.php. and this getsubject.php again calls getrollno.js which again calls getrollno.php.

so problem is that when when i browse getsubject.php it return the Roll No corresponding to Name. but when i browse the parent page i.e. smarks.php it shows nothing means roll no is not displayed.

in smarks.php i am returning the name of students and subject according to class selected by user. so it works fine.

so what i want to ask that can i call series of js pages like mentioned above
Nov 20 '07 #1
1 1028
code green
1,726 Recognized Expert Top Contributor
so what i want to ask that can i call series of js pages like mentioned above
Well yes up to a point, but you are trying to jump between javascript and PHP.
You need to be aware of the client-server relationship and how PHP and javascript fit in this.
Rather than thinking of PHP calling JS and vice-versa, think in terms of HTML calling JS and PHP because that is what is really happening.
Then realise that JS can run on the client side but the PHP will only run when the web page is submitted to the server
Nov 20 '07 #2

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

Similar topics

0
2148
by: Alex | last post by:
I'm running Apache 2.0.47, PHP 4.3.3 on RedHat 9.0 on a new server. I have a series of pages that let's say pages 1 -> 3 are non-ssl and 4-8 are SSL but the URL domain is different (shared SSL). The client clicks through them from one to another in order using forms and URLs with GET vars. The client starts a non-ssl session on pg. 1 using www.mydomain.com. When they get to pg. 3, a hyperlink with an SSL URL and session ID as a GET...
10
1659
by: Curt_C [MVP] | last post by:
If I use it in my page it's fine but when I put it in a Class file for calling it returns the same # for each call. Any ideas why? I'm sure it's something I'll slap myself for but the only samples I can find are for calling the Random() within the page, not a seperate class. --Page-- myClass myclass = new myClass(); for(int i = 1;i <= 100; i++) {
2
1925
by: James | last post by:
In oracle I can do the following: select CONVERT(COLUMNOFNAMES,'US7ASCII') from mytable -- It will take a name like Albrecht Dürer and change it into Albrecht Durer and is useful in where clauses where you do not know if a user is going to enter u or ü -- I convert the user input into Durer as well as the column and query against it and get hits ........ very useful. I can't seem to get something similar working with MySQL --
4
3011
by: geoffp | last post by:
I need to generate reproducible random number series. I've done the obvious - use mt_srand with the same seed. This supposedly will create the same series every time. Is this true? Its not working for me. By the way, seeding mt_srand with different integers doesn't necessarily produce different series. I've done a little testing and every pair of consecutive even and odd numbers produces the same series. eg. seed 0 and 1
8
1734
by: supasnail | last post by:
I have a happily working set of asp pages which read from the database via include file "./_private/include/database.mdb". However, when I try to gain access to this database on pages one folder removed using "../_private/include/database.mdb", the pages won't display. This whole system works fine on my home test server (iis.5.0), but 'breaks' when uploaded to the public server. I know the path to database is correct because the upper...
27
5153
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set contents ]; close $fileID
4
1069
by: =?Utf-8?B?YjF1Y2VyZWU=?= | last post by:
Hi, i need to work out a solution to this: i have a class that is a time series of (double) numbers and i want to do the following calculation for int x; i need to perform a calculation which will, starting with the last item added to the time series perform calculations moving backwards through the timeseries x items back and return these calculations in a new series of data comprising these x items
2
1003
by: mukeshrasm | last post by:
Hello Everyone! I have a php page called smarks.php which calls a js page selectclass.js which in return calls getsubject.php. and this getsubject.php again calls getrollno.js which again calls getrollno.php. so problem is that when when i browse getsubject.php it return the Roll No corresponding to Name. but when i browse the parent page i.e. smarks.php it shows nothing means roll no is not displayed. in smarks.php i am returning the...
47
3292
by: mukeshrasm | last post by:
Hi I am calling two pages using Ajax Get_Pages.php and Get_Content.php from combo box. Both pages are displayed based on selection from combo box. Main problem is that it is not showing the editor which is called on the Get_Content.php. in Main Page. I have included the js files in the head section. all the files are on the same directory.
0
9656
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
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10177
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10118
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6750
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
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2897
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.