Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call test.php

Status
Not open for further replies.

kalekseishaken

Programmer
Joined
Mar 7, 2006
Messages
6
Location
US
My problem is simple (or at least I thought so). I want to run a PHP script file.

My problem is how do I call the script file without wiping out the current page.

I have a bunch of HTML pages that I use to gather data, and a bunch of PHP files that write the files to MySQL databases. Now I need to interface the two.

The folks at Zend said to use Javascript, but I have no idea what JAvascript cvommand to use to call my PHP script. Any and all help appreciated.

Ciao . . . C.Joseph
 
how do you plan on submitting the information you gather? will a user be submitting a form? if so, why not just set the target of the form to a blank page? or are you looking for something more like ajax, which will allow you to "seemlessly" submit data while remaining on the page?

the first requires only HTML, the second requires a mix of HTML, Javascript and possibly XML.



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Hi cLFlaVA,

BAsically, at this point, I would be satisfied to just have my PHP script actually called I can do most of what I need to do on the PHP side. Right now, I can even get my PHP script top execute.

I have tried;

xmlhttp.open("GET",url,true)

where the URL is "login.php"

Ciao . . . C.Joseph
 
How about showing more of the relevant code you have so we can get a better idea what's happening?

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top