Jul 27, 2008

About Submit Form Box

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

About Submit Form Box

.hack//GU
I make the form tags like this:
CODE

<form action="check.php" method="post">
<table>
  <tr>
   <td>Username:</td>
   <td><input type="text" name="user"></td>
</tr>
  <tr>
   <td><input type="submit" value="set"></td>
</tr>
</table>
</form>

my question:
in the tags above, it will produce a submit box, right?
I want to make just text: "set" that one can click it, then link it to the form action(check.php). I thought I cannot just use <a href> right?

Notice from jlhaslip:
use bbcode " [ code ] [ /code ] " tags when posting any computer code. Inserting it raw in the posting MAY break the forum formatting. Thanks.

 

 

 


Reply

Helium
No you can't use <a></a> tags for submitting forms.
And for what you want I think you will have to use javascript.
Unfortunatly Javascript isn't my greatest skill so I don't have a clue, try looking on hotscripts or something like that.

Reply

jlhaslip
One reason it would not be a good idea is because the users are familiar with certain default characteristics of Web Pages. Submit buttons on forms and underlining links are several of the standard practices which users are used to seeing. Any deviations might confuse them. For instance, they may think it strange to have a Form with no 'submit' button to use.

Reply

Inspiron
To add on to jlhaslip's comments, it is impossible to replace the submit box with a normal link. A normal <a href> link will simply point to the next address without passing values properly to the next generation script. Only a submit button is able to handle the form procedures correctly.

Reply

electriic ink
It could be done but not with text but with images. Firstly you'd need to create 2 images, one which is your normal link text and one the link rollover text:

Click to view attachment <= Normal
Click to view attachment <= Rollover

And add the following code into your webpage, altering the URIs respectively:

HTML
<input type="image" name="submit" value="Alternative Text" src="set_normal.png" onMouseOver="this.src='set_normal_rollover.png';" onMouseOut="this.src='set_normal.png';" onClick="this.form.submit()">



.

In fact come to think about it, you may even just be able to use plain text links:

HTML
<a href="this.form.submit()" name="submit"> Set </a>


But I'm not sure. The former method should work but I haven't tested it yet.

Both methods use javascript so you would need to provide a <noscript> alternative using the standard submit button.

 

 

 


Reply

.hack//GU
my friend who ask me to develop his site told me not to use the submit box, because it will ruin his whole design. Thank you for the advice, electriic. I'll try to do that. Also my thanks for the other posters.

Reply

Tyssen
QUOTE(.hack//GU @ May 19 2006, 11:12 AM) *

my friend who ask me to develop his site told me not to use the submit box, because it will ruin his whole design.

Tell your friend that there are various methods of replacing buttons with graphics (that can look like text) if he's that worried about it.

Reply

Inspiron
QUOTE(electriic ink @ May 18 2006, 03:22 PM) *

It could be done but not with text but with images. Firstly you'd need to create 2 images, one which is your normal link text and one the link rollover tex

Ha.. What a good idea to it using images that looked like a link to replace a link.

Reply

peroim
You don't need the images (save your bandwidth):

This is the script you'll need for that:
CODE
<script  language="JavaScript">
function goForm(){
this.form.submit();
}
</SCRIPT>


And this is how the link should look like:
CODE
<A href="java script:goForm()">Set</A>

(I tried to type 'JavaScript' and not 'java script', but it always changes it back.)

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : submit, form, box

  1. Vb 2008 Linking To Another Form..
    (0)
  2. Application Form [approved]
    (2)
    PRESENT CREDITS : HOSTING CREDITS : 37.65 Forum Username : Dhruv Display Username: Dhruv Email
    Address:dhruvin_patel@hotmail.co.uk My request is for: HOSTING PACKAGE 1 Your Registered Domain
    Name or Desired Trap17 Subdomain Name: tutorial-linker.trap17.com Introduce Yourself: Your hobbies,
    interests, talents, etc. Let the forum know you better. • My name is Dhruvin. Hobbies: Girls, gaming
    and computers. I have no talents I'm just a all rounder can do everything if i like biggrin.gif
    .Live in United Kingdom. And am a student. Desired Hosting Account Username: 8....
  3. Gahhh This Isn't Going Well Please Help!
    It's a forgot password form in php! (12)
    CODE <? // database connection details stored here include "database.php"; ?>
    <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head>
    <title>Thanks!</title> </head> <body bgcolor="#ffffff"
    text="#000000"> <? $email=mysql_real_escape_string($email);
    $status = "OK"; $msg=""; //error_reporting(E_ERROR | E_PARSE |
    E_CORE_ERROR); if (!stristr($email,"@") OR !stristr(�....
  4. Help With Form Actions.
    (1)
    CODE <h1>Login</h1> <form action="" method="post">
    <table align="left" border="0" cellspacing="0"
    cellpadding="3">
    <tr><td>Username:</td><td><input type="text"
    name="user" maxlength="30"></td></tr>
    <tr><td>Password:</td><td><input type="password"
    name="pass" maxlength="30"></td></tr> <tr><td
    colspan="2" ....
  5. Registration Form?!
    Password Issue??? (6)
    How can I build the registration form with some additional function which is illustrated by attached
    file. When a user tries to type a password, that bar thing says neither it's strong nor weak, or
    medium. Just take a look at attachment....
  6. Html Form!
    Using MySQL?! (4)
    Hey, I need your help again! I need some good working tutorial how I can update my SQL through
    HTML form. I did use some tutorials online found with the help of google; but they do not work
    properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
    should be based on security and more things. It has to be done in proper way.......
  7. How To Make Form Nested In Internet Explorer ?
    Nested form in IE (2)
    I want to make a form nested in another form, it's run on Opera and FireFox but it's occur
    error in IE How can I make form f2 submit by using javscript ??? (I want to solve this
    problem because my website using Ajax upload....
  8. Form Not Returning Correct Email Address
    (5)
    I have just noticed another side effect of the recent server migration. On my web site I have a
    comment form. After filling in the form the user gets a confirmation email and I get an email to
    tell me someone filled in the form, and showing me the data that were filled in. First of all, I
    got all emails twice, but I think I managed to fix that in the PHP code. What is worse, though, the
    user still gets his/her confirmation and thank you email, but, instead of my email address, the
    From: field now gives an aaddress on the server my account is on, ie. the gamma server. D....
  9. Frontpage Problem
    Strange message when press Submit (0)
    Trying to set up a "skeleton" form generated with Frontpage 2000. After installing Frontpage
    Extensions, when I hit Submit on the form I get this response: *-*-* :-| :^| :-/ :-( 8-( *-*-*
    * status=1 * osstatus=0 * msg=FrontPage security violation. * osmsg= I'm new at
    this, and don't understand any of the above response. Please explain the above stuff and suggest
    how to fix it. Thanks, Jack Here's the brief code: <!--webbot
    bot="SaveResults" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/CS....
  10. List Of Free Directories To Submit Your Websites
    (7)
    Hi: Submission in free directories is a world-known way to increase ranking and traffic. But most
    of you don't know a good source of that list of directories. Here is a great source of free
    directories list . Just start submission in those directories in your free time, and see you
    ranking.......
  11. Brand New Motherboard Form Factor Coming Out?
    a new form factor standard could be upon us (2)
    So it looks like the ATX form factor is going to to be replaced. The new form factor is called the
    BTX. BTX stands for Balanced Technology Extended. Newegg doesn't even carry them yet. The board
    is completly square, which simplifies intallation to the case. The BTX has all slotted connections
    (PCI, RAM, PCIe, etc.) aligned parallel to each other increasing airflow. Because eveything is
    inline, the BTX form factor has the ability for multiple PC componants to share a single fan (cross
    flow fans). All I know is I want it. On a side note, the 45nm Manufactoring Tech....
  12. Updating Php File Through A Web Form
    (5)
    Hello, i'm not sure if this can be done with php or not but what i need is a way to make an php
    file that have an html form on it and it will take the info you put in to that form and write it to
    an existing php file, for example: if i have the file news.php and the file news_update.php. if you
    went to news_update.php you would get an form with a text area for you to write a new addition for
    the news.php file and when you hit submit it will add what you typed in the form to the file
    news.php. If this is going to be a big code or a hard one to make but some one think....
  13. I Liked This Form Builder
    It also uses Ajax (4)
    www.wufoo.com The form builder is unbelievably easy to use. I made a form in like 20 seconds. The
    functionality is good ( though pros could probably make a better form that would suit them, this one
    is good for newbies. ) All you have to do is drag and drop some modules and your form is ready.
    Now for the cons : You are only allowed to make 3 forms and the limitation of 100 entries per form.
    So technically this is not completely free, but it is good if you need a cool looking
    form in a jiffy. Its ....
  14. Controlling Differents Keypresses In A Single Form
    (0)
    if there are more than 1 button in a form, how can i control each button by different key presses. i
    tried accesskey, but in that we need to press alt+some key for the desired output. i want to control
    the buttons with a single key press. how can i do that plz do help me. im working wid j2ee. i want
    to create a web application....
  15. Php Ftp Upload Form
    Adding User Directory to PHP Upload Form - Help (0)
    Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
    folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
    directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
    upload things into the main directory, only sub-directories, is that possible with this coding that
    I have: //uses $_FILES global array //see manual for older PHP version info //This
    function will be used to get the extension from the filename function get_extension($fi....
  16. Submit Your Site To Google
    How to make google find your site (14)
    How to submit website to google? Is there any fast and guaranteed way to do it?....
  17. Add A Javascript Feedback Form On Your Web Page
    This is how to do it (6)
    So i was looking for a feedback form in javascript and i couldn't find one so ive made one for
    you guys here we go! So this feedback form will ask for name, emails address and their comments
    First of all add this code in between the and tags CODE <script
    name="JavaScript"> <!-- function SendEmail() {         var toaddy =
    'name@domain.com';         var subject = 'JS Form Submission';         var mailer =
    'mailto:' + toaddy + '?subject=' + subject + '&body=' +
    'Name%20is\....
  18. Best Way To Protect Html Form Fields
    Looking for suggestions on how to protect form fields during user inpu (3)
    My working example is here http://sonesay.trap17.com/application.php The form submits to itself
    and stores what ever the user inputs into session variables. Thats all fine and I have validation
    checks for it, I wanted to add more and I remember comming across a site where they would lock from
    fields to prevent any changes if the information was already supplied and validated. I'm looking
    to build something similar but cant seem to figure out how to get that same effect at this time.
    Heres my program logic so far application.php includes('application_content.....
  19. Html Application Form
    (6)
    does anyone know how to make a form/application that when you submit the form with the submit but it
    sends it in a email to you email address if anyone on here knows please please let me know thanks, i
    want this so i can have members apply for a team on my football site and there information will come
    back to me and i can accept or reject them for that job....
  20. Free Hosting Request Form [denied]
    (1)
    PRESENT CREDITS : Forum Username : Black_d0s Display Username: madlinux Email Address:
    register.madlinux@gmail.com My request is for: HOSTING PACKAGE 1 Your Registered Domain Name or
    Desired Trap17 Subdomain Name: crew.trap17.com Introduce Yourself: Your hobbies, interests,
    talents, etc. Let the forum know you better. • Hi, my name is Jesse. The website i want to start is
    a community website like myspace or something of that sort . my intrests are running websites, i
    also make my own programs i am good with c++,html,linux,unix,freebsd pretty much anything.my hobbi....
  21. Free Hosting Request Form [denied]
    (1)
    PRESENT CREDITS : Forum Username : Black_d0s Display Username: madlinux Email Address:
    register.madlinux@gmail.com My request is for: HOSTING PACKAGE 1 Your Registered Domain Name or
    Desired Trap17 Subdomain Name: crew.trap17.com Introduce Yourself: Your hobbies, interests,
    talents, etc. Let the forum know you better. • Hi, my name is Jesse. The website i want to
    start is a community website like myspace or something of that sort . my intrests are running
    websites, i also make my own programs i am good with c++,html,linux,unix,freebsd pretty much
    anything.m....
  22. My Idea For A Form Of Government
    Eleutherionism (24)
    I call it Eleutherionism, which is based off of the Ancient Greek word for freedom. It's fairly
    similar to socialism, but also vastly different. Here is the basic idea for it: Eleutherionism is
    an interesting concept. It's based off of socialism, but it gives the citizen much more freedom.
    In socialism, everyone is paid the same thing for working different jobs. I want to expand on that
    concept. Different jobs will have different wages, increasing based on popularity, difficulty, and
    talent required. In order to get a certain job, you must study (after you grad....
  23. Problem With Java Script Popup Form
    Doesnt work in Safari (1)
    This code wont work in Safari, but works fine in Firefox 2. Can someone help. The error pops up
    however. It just doesn't do anything unless you dont pick one and then it says Pick a Windows
    tweak, but if you DO pick one it doesnt even try to load anything. Everything you see below is
    everything inside my PHP Include. If you would like to view my actual site it's
    http://boozkerstweaks.trap17.com There might be PHP errors and stuff right now, but i am working on
    those, but this i can not get. CODE <td  valign="top" class="right">
       ....
  24. Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?
    (8)
    Hi. Please if anybody test a mini-ps2. Have diferences of performance form PS2 full console to
    mini-ps2? thanks.....
  25. How To Make A Search Form And Php Code?
    Can you help please? (10)
    I am looking to put a whole Bible on my site, don't worry about copyrights, I already have all
    that. It will be put into my site book by book. My problem? I need a form that will only search
    the /Bible part of my database. I need an html form, and then a php code that can be put into just
    ONE file but that will display a search page afterward. If you could help me out here, I would
    greatly appreciate it since I will need this in order for it to work. The goal is simple, have an
    html form, that will lead to a search of my entire inneed.mxweb.co.uk/bible database....
  26. Multiple Drop Down Menus W/ Submit Button
    (6)
    I am building a page that will have 2 drop down menus and a submit button. The first menu will have
    one set of options, say colors (red, blue, green, yellow). The second menu will have another set of
    options, say sizes (small, medium, large). What I want to be able do is select a color and a size,
    click submit and have it go to the page for those options. So if a user picks 'Red' and
    'Small' and clicks submit they will be linked to page1.html. If they pick 'Blue' and
    'Large', they will be linked to page2.html, and so on. Any ideas how to ....
  27. Loop Through Form
    How do you do it? (8)
    In ASP you'd do this: CODE For Each Field in Request.Form So how do you do it in PHP? I
    want to loop through a form, check to see if it has a value and if so, append to a string to send as
    the body of my email.....
  28. Form To Php Mail. Attachment
    (14)
    i know there are a few topics talk about attachment problem, but i want to know if anyone could show
    me a basic code for attaching files like pictures with the message. I made a html form, and
    redirect the information to my mail.php file to process the information and send it to my email. I
    want to know what do i have to do to attach files like pictures. I tried to search on google, and
    the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
    the code and explain to me what it does and how i could customize it to fit my needs?....
  29. *** Click Here To Get Your Free Hosting ***
    Trap17 Free Web Hosting Request Form - FILL OUT THIS FORM (1)
    Welcome to Trap17 Free Web Hosting. Before you start, read the Trap17 Readme . NOTE:
    Trap17 is not like other forums where you can still survive without reading stickies. If you
    don't read the Trap17 sticky you will NOT UNDERSTAND how to get hosting. Please take a few
    minutes to do that now. Some more info: A NOTE TO NEW MEMBERS (those who haven't yet
    participated in our forums) Before you post an application, You must participate in our forum and
    collect "Hosting Credits". You earn "Hosting Credits" when you make a post. You should make good
    genui....
  30. Free Windowsxp Sp2 Cd From Microsoft
    just fill the request form and recive it (12)
    microsoft offer 100% free windows xp sp2. just go to this link
    http://www.microsoft.com/windowsxp/downloa...us/default.mspx and fill your address they will send
    you the cd to you. I just recive the cd yesterday. /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> I see new feature like directx 9c , WMP9 ,
    firewall , and the one I like is popup blocker! /wink.gif' border='0'
    style='vertical-align:middle' alt='wink.gif' /> PS. waiting for the cd about 1-2 week if you
    write an exact address.....

    1. Looking for submit, form, box

Searching Video's for submit, form, box
Similar
Vb 2008
Linking To
Another
Form..
Application
Form
[approved]
Gahhh This
Isn't
Going Well
Please
Help! -
It's a
forgot
password
form in
php!
Help With
Form
Actions.
Registration
Form?! -
Password
Issue???
Html
Form! -
Using
MySQL?!
How To Make
Form Nested
In Internet
Explorer ? -
Nested form
in IE
Form Not
Returning
Correct
Email
Address
Frontpage
Problem -
Strange
message when
press Submit
List Of Free
Directories
To Submit
Your
Websites
Brand New
Motherboard
Form Factor
Coming Out?
- a new form
factor
standard
could be
upon us
Updating Php
File Through
A Web Form
I Liked This
Form Builder
- It also
uses Ajax
Controlling
Differents
Keypresses
In A Single
Form
Php Ftp
Upload Form
- Adding
User
Directory to
PHP Upload
Form - Help
Submit Your
Site To
Google - How
to make
google find
your site
Add A
Javascript
Feedback
Form On Your
Web Page -
This is how
to do it
Best Way To
Protect Html
Form Fields
- Looking
for
suggestions
on how to
protect form
fields
during user
inpu
Html
Application
Form
Free Hosting
Request Form
[denied]
Free Hosting
Request Form
[denied]
My Idea For
A Form Of
Government -
Eleutherioni
sm
Problem With
Java Script
Popup Form -
Doesnt work
in Safari
Have
Diferences
Of
Performance
Form Ps2
Full Console
To Mini-ps2?
How To Make
A Search
Form And Php
Code? - Can
you help
please?
Multiple
Drop Down
Menus W/
Submit
Button
Loop Through
Form - How
do you do
it?
Form To Php
Mail.
Attachment
*** Click
Here To Get
Your Free
Hosting ***
- Trap17
Free Web
Hosting
Request Form
- FILL OUT
THIS FORM
Free
Windowsxp
Sp2 Cd From
Microsoft -
just fill
the request
form and
recive it
advertisement



About Submit Form Box



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE