GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-May-2005, 10:15
schgid schgid is offline
New Member
 
Join Date: Apr 2005
Posts: 1
schgid is on a distinguished road

1 line php cover function changes result of called programs


I am running php under apache for development programs at home. I ran into a prob on a simple html form when adding a new layer of calling programs. Boiled down to this: I have a simple HTML form generated by a php program. When called directly(from my browser) this form runs fine and executes the "action" program on clicking the submit button. When called from a 1 line cover file with the line: include('formprogram.php') the form displays but will not run the action script on clicking submit. I say this as I stick an exit line, and various echo's at the top of the action script and it is not triggered. However if I run the "form script" directly it prints my echo's and exits.
Perhaps a clue: the browser window when run from the cover program shows(after submit button is clicked) the address of /coverprogram/actionprogram. Input is cleared, but the action program does not seem to run..

This has now been fixed-I specified the directory just by adding the / in the form action='/actionprogram.php'. I don't quite understand why calling from some prgrams require this when they are all in the same directory, but it is fixed.

Any ideas on how to get to the bottom of this.
also-all programs lie in the same directory.
I appreciate any ideas. New to the board, thanks in advance.
Last edited by schgid : 03-May-2005 at 11:27. Reason: fixed but still wonder why
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fltk-2.0 cvs Plumb FLTK Forum 20 13-Nov-2004 07:10
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Revising Script style ?????? pepee MySQL / PHP Forum 4 14-Apr-2004 04:59
CD Buring Failed skanth2000 Computer Hardware Forum 1 15-Nov-2003 03:52

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:06.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.