Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need help with HTML form, Please!!
Old 10-15-2005, 08:24 PM Need help with HTML form, Please!!
Ultra Talker

Posts: 255
Location: NY
Trades: 0
I must've had a brain f*rt because I cannot remember how to do the first part and would really love to know the second part.

I created a form and I want certain input text fields filled in by the person before the form can be submitted, like firstname and email address or whatever (this is important), and then have a message appear someplace within the website in RED that states they must fill in certain fields or something to that effect (not as important, but nice to know).

How would I go about doing this?

Thanks a'bunch!
DianeD
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
 
Register now for full access!
Old 10-16-2005, 02:33 AM
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Try having this in the PHP forum for a start. I am just getting to terms with PHP, but this is a little advanced for me.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 10-16-2005, 08:25 PM
lil_cat_luver's Avatar
Skilled Talker

Posts: 57
Location: Canada
Trades: 0
For input boxes, I use this code:

<input type="text" name="namehere" value="valuehere" size="30" maxlength="30">

And for the message, you could just type regular text, and add a font tag. Like this:

<font color="#FF0000">Message here</font>

There's also a php script called NL-PHPmail from codegrrl.com that has a function you might want. It does not send the form if a certain field (or fields) isn't filled. You can visit this page http://codegrrl.com/scripts/nlphpmail/ for more information, and to download.
lil_cat_luver is offline
Reply With Quote
View Public Profile Visit lil_cat_luver's homepage!
 
Old 10-16-2005, 10:02 PM
Ultra Talker

Posts: 255
Location: NY
Trades: 0
Yes, lil-cat-luver - that's how I created my form, too, but what happens when someone does NOT fill anything in - the form still gets sent to me.

I thought there was some sort of HTML that I can put in there that 'reminds' them to fill in the blank and not leave it. I thought I saw it somewhere and now I can't seem to find it. Drats!

Twitch - I wasn't looking for a PHP script, but perhaps that's the only way to accomplish what I need to do. Rats!! I don't know PHP to do this, but I guess this might be a way for me to learn!

DianeD
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
Old 10-16-2005, 10:25 PM
lil_cat_luver's Avatar
Skilled Talker

Posts: 57
Location: Canada
Trades: 0
Diane, I don't think html codes can accomplish what you wanted. However, if you use NL-PHPMail, your forms will still be html forms, it would just be a php script that process the form. It's quite easy, because I don't know much about php either, and I still got it to work
lil_cat_luver is offline
Reply With Quote
View Public Profile Visit lil_cat_luver's homepage!
 
Old 10-16-2005, 10:44 PM
Average Talker

Posts: 25
Location: Indonesia
Trades: 0
Quote:
Originally Posted by DianeD
Twitch - I wasn't looking for a PHP script, but perhaps that's the only way to accomplish what I need to do. Rats!! I don't know PHP to do this, but I guess this might be a way for me to learn!

DianeD
You can do also in Javascript.
For many free samples of PHP or Javascript then Goggling with "Form Validation"
__________________

Please login or register to view this content. Registration is FREE
.
dannybedor is offline
Reply With Quote
View Public Profile Visit dannybedor's homepage!
 
Old 10-17-2005, 10:17 AM
Ultra Talker

Posts: 255
Location: NY
Trades: 0
Thanks for your help anyhow. I already have a PHP form mail script in place and it's working fine. Don't need another one.

DianeD
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
Old 10-17-2005, 04:21 PM
lil_cat_luver's Avatar
Skilled Talker

Posts: 57
Location: Canada
Trades: 0
OK, so your existing php script has the warning message function as well? Anyways, as long as it works :P
lil_cat_luver is offline
Reply With Quote
View Public Profile Visit lil_cat_luver's homepage!
 
Old 10-18-2005, 12:34 PM Found it!!
Ultra Talker

Posts: 255
Location: NY
Trades: 0
Just an FYI (so that you all don't think I'm crazy) --->

I found exactly what I was looking for, and yes, it is a javascript, although the message doesn't appear in red, the little popup works fine. I thought I could do it another way,but I guess I can't. To see what I was talking about, go to my webpage here, and just go down and click on "Submit". You'll see what I mean.

I like to keep my pages cleansed from javascript within the actual page, so I create the javascripts as separate files and link them. They work fine and the HTML coding is cleaner and oh so much neater.

Thanks for your help,
DianeD
DianeD is offline
Reply With Quote
View Public Profile Visit DianeD's homepage!
 
Reply     « Reply to Need help with HTML form, Please!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.05584 seconds with 12 queries