473,385 Members | 1,838 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,385 software developers and data experts.

problem while calling series of pages

254 100+
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 1011
code green
1,726 Expert 1GB
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
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)....
10
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...
2
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...
4
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...
8
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...
27
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...
4
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...
2
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...
47
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.