Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > World Wide Web > Programming / Scripting / Coding Forum

Programming / Scripting / Coding Forum Discussion HTML, C++, PHP, CGI, JSP, perl etc

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-26-2006, 04:55 AM
loco-sequencer
Status: Offline
Member
 
Join Date: Dec 2005
Location: Who Knows!
Posts: 48
loco-sequencer is on a distinguished road
Send a message via MSN to loco-sequencer
Default How do I do this PHP function?

Hi. I have a PHP script to contact me but I'm not sure how to do this: I want to make this script check whether a part in the form is empty without it checking it before it's actually submitted. Can anyone help me out?

(PS: Whoever gives me a really good answer might get 1) A reputation mark and 2) A FREE song instead of getting it for... I don't know! All I know is that it will be charged for! lol!)
__________________
The Sequencer's Library - Specializing in cheap MIDIs!

Please feel free to contact us on:

(Somethings gone WEIRD in the Design so no Link to Page)

For all other enquires: admin@the-sequencers-library.profusehost.net

---
The Sequencer's Library Support Team
http://the-sequencers-library.profusehost.net/
Reply With Quote

  #2 (permalink)  
Old 08-29-2006, 01:08 AM
loco-sequencer
Status: Offline
Member
 
Join Date: Dec 2005
Location: Who Knows!
Posts: 48
loco-sequencer is on a distinguished road
Send a message via MSN to loco-sequencer
Default

OK. I just worked it out. This is how it goes:

1. Create your page.

2. Put in the following PHP info before the error part of the page:
PHP Code:
<? if (empty() || empty()) { ?>
3. Put the following code at the end of it:
PHP Code:
<? } else { ?>
4. Then put a form before the success text like 'Thank you' containing the mail() function and the success information after that.

5. Then put the following code in the end of the success part:
PHP Code:
<? ?>
If you want, I'll give you my page (Modified of course to not give away any personal info!) and you check it and see how it works or just copy the PHP info. If you do, however, want the page OR use the method stated above exactly, PLEASE link back to me. I will inspect your page (If you posted the info here) to check that you have a link back to me/us.

Ruben.
__________________
The Sequencer's Library - Specializing in cheap MIDIs!

Please feel free to contact us on:

(Somethings gone WEIRD in the Design so no Link to Page)

For all other enquires: admin@the-sequencers-library.profusehost.net

---
The Sequencer's Library Support Team
http://the-sequencers-library.profusehost.net/

Last edited by loco-sequencer : 08-29-2006 at 01:10 AM. Reason: Didn't go advanced for PHP code
Reply With Quote

Reply


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
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail function Dosent Work in my Account Apurbo Free Web Hosting Support 1 09-25-2008 07:38 PM
PHP Mail() function problem? john s PHP 4 06-08-2008 02:03 PM
Domain function Jace Internet 8 12-28-2007 01:34 AM
php mail function mbooks Programming / Scripting / Coding Forum 1 01-27-2007 08:00 PM
Yours Ad's don't function ... future24 Free Web Hosting Support 6 12-08-2005 10:55 AM


All times are GMT -7. The time now is 05:05 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80