|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I'm sorry, I've been experimenting with HTML for a while, memorized basically all common HTML tags, a few uncommon... But just recently, I started into javascripting. I read up on it in a book I got, but I don't understand how the submit function works, such as automatic posting in forums. I am working on a project that involves this sort of thing, and as soon as I understand this better and experiment, I may have more questions. Thanks in advance... I really seem to be having trouble...
![]() |
| Sponsored Links |
|
|
|
|||||
|
Do you have a specific question? I don't really know how to answer. If you need to know how to submit a form pragmatically here is some code to do that:
HTML Code:
<form name="myform" action="handle-data.php"> Search: <input type='text' name='query'> <A href="javascript: submitform()">Search</A> </form> <SCRIPT language="JavaScript"> function submitform() { do***ent.myform.submit(); } </SCRIPT>
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
|
|||
|
Thank you! Just one last question if it isn't too much trouble... What happens after somebody submits the form? Is it recorded into a database I can access when I am ready? I'm sorry if its too much trouble, but just a question.
|
|
|||||
|
The code above does not. You will need something like PHP to insert it into a database.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
|
|||||
|
With the JavaScript above it just calls the function submitform() which executes:
Code:
do***ent.myform.submit();
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
|
|||
|
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SecurityAudit | vinay | Visual Basic Programming | 27 | 01-07-2008 12:14 PM |
| Managed C++ calling VB .net dll function | pranab73 | Managed C++ | 0 | 12-25-2007 12:19 PM |
| multi-p*** preprocessing | kenna | C and C++ | 11 | 08-14-2007 10:45 AM |
| small help in this generator function plz | SamehSpiky | C and C++ | 3 | 06-22-2007 11:47 AM |
| Xav | ........ | 1322.18 |
| MeTh0Dz|Reb0rn | ........ | 1053.7 |
| morefood2001 | ........ | 879.43 |
| John | ........ | 877.37 |
| marwex89 | ........ | 869.98 |
| WingedPanther | ........ | 830.24 |
| Brandon W | ........ | 735.07 |
| chili5 | ........ | 309.39 |
| Steve.L | ........ | 239.84 |
| dcs | ........ | 216.02 |
Goal: 100,000 Posts
Complete: 82%