Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Dec 14th, 2005, 8:36 AM   #1
MegaArcon
Programmer
 
MegaArcon's Avatar
 
Join Date: Aug 2005
Posts: 66
Rep Power: 0 MegaArcon is an unknown quantity at this point
Form Submit Blues

Hi all! ^_^

I've got two problems with the form I'm working on.

1.) I was having the problem that regardless of what button was pressed inside the form, it submitted the form instead of just doing what it was supposed to do. It would preform whatever action I had set to the onclick but then try and submit. So, to fix this problem I had my form action set to:

<form action="javascript:void 1" method="post" name="f">

Which solved the problem of the buttons submitting the form when clicked. However, now I'm really not sure how to call my python script and submit the form data to it.

2.) Even if I have the form as:

<form action="MyPythonScript.py" method="post" name="f">

When I submit, it just prints out the raw text of the MyPythonScript.py file instead of actually doing what I want it to do.

Can anybody out there help me with these? Thanks a lot! ^_^
MegaArcon is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:39 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC