It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Jul 2006
Location: Redmond, WA
Posts: 1,064
|
hey all..
this is what i'm trying to do.. i have a login page (login.php) i want that when you click the SUBMIT button, it goes to a function instead of a php page... this is LOGIN.php <?php <form name="form_login"> <input type="submit" onClick="document.form_login.action='TEST.php';doc ument.form_login.TEST();"> </form> ?> this is TEST.php <?php function TEST() { echo 'TEST TEST TEST TEST'; } ?> is what i'm trying to do possible? i know i'm missing something in the code... |
|
|
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Jul 2006
Location: Redmond, WA
Posts: 1,064
|
what i want is that it will call the function not the page.
i'm going to put common functions in a single php file (in this case i'll call it TEST.php). and this specific form will only need to run the TEST() function from TeST.php will contains several other functions... any ideas?? |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What Business Form do you use? LLC, INC, etc? | jason | Affiliate Marketing | 2 | 07-29-2006 10:22 PM |
| . Retrieving files form database | justin | ASP | 0 | 07-27-2006 04:59 PM |
| Additions to the New Post Form - PLEASE USE IT | natalie | Graphics & Multimedia | 0 | 07-05-2006 05:45 PM |