Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | | need some help? (11th Jan 10 at 2:21am EST) | | I need some help with a few things, firstly I need a submition form like The Web Tower.com has, and second I need a code that has the "waiting for approval" and shows the submitted form for others to see. I'm trying to make an affiliate type of site. like The web tower is, but mine will just be a directory, which is. http://thedirctory.2x.nu
I also need some help with API, but maybe i should post in the API board? | |
 FREE ADVERTISING at iDirectory COME AND ADVERTISE WITH US TODAY! |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 3,974 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pm vForum | | Re: need some help? (11th Jan 10 at 2:28am EST) | | Yes to posting in the API board for API support. And do you want the form to email you or what? | |
|
|
Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | | Re: need some help? (11th Jan 10 at 2:31am EST) | | Yeah to email me, and then send them to another page saying that it's going in for approval, and thanks, Also my affiliate banner/code on the same page and what ever else. Then I can add their Affiliate Banner into the Directory. when I get it/approve it.
and ok, also thanks!:) | |
 FREE ADVERTISING at iDirectory COME AND ADVERTISE WITH US TODAY! |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 3,974 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pm vForum | | Re: need some help? (11th Jan 10 at 2:33am EST) | | Ok, well I'll just make it redirect to a set page for you!
What things do you want them to provide when submitting? | |
|
|
Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | | Re: need some help? (11th Jan 10 at 2:39am EST) | | Ok and:
User Name: E-Mail: Site URL: Site Banner: Site Category: e.g. Anime, Computing, etc
| |
 FREE ADVERTISING at iDirectory COME AND ADVERTISE WITH US TODAY! |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 3,974 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pm vForum | | Re: need some help? (11th Jan 10 at 2:54am EST) | | <? if($_SERVER['REQUEST_METHOD'] == 'POST'){ if(!isset($_POST['username']) || $_POST['username'] == '') $error[] = 'Username is required'; if(!isset($_POST['email']) || $_POST['email'] == '') $error[] = 'Email is required'; if(!isset($_POST['site']) || $_POST['site'] == '') $error[] = 'Site URL is required'; if(!isset($_POST['banner']) || $_POST['banner'] == '') $error[] = 'Banner URL is required'; if(!isset($_POST['category']) || $_POST['category'] == '') $error[] = 'Site Category is required'; if(!isset($error)){ mail("Email Address", "New Site Submission", "Username: " . $_POST['username'] . "\nEmail: " . $_POST['email'] . "\nSite: " . $_POST['site'] . "\nBanner: " . $_POST['banner'] . "\nCategory: " . $_POST['category'], "From: " . $_POST['username'] . " <" . $_POST['email'] . ">"); header("location: ./confirm.html"); }else echo "-" . implode("<br />-", $error); } ?> <form action = 'dm_email.php' method = 'post'> Username: <input name = 'username' /><br /> Email Address: <input name = 'email' /><br /> Site URL: <input name = 'site' /><br /> Banner URL: <input name = 'banner' /><br /> Site Category: <input name = 'category' /><br /> <input type = 'submit' value = 'submit' /> </form>
That's the code that you need. Simply modify the coloured bits. Red = Email Address to send them to. Blue = Confirmation page (saying it's been submitted etc...) Green = Name of the file that you save that code as. When I was testing I saved the file as 'dm_email.php' you might save it as 'submit.php'
Questions, post them. | |
|
|
Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | | Re: need some help? (11th Jan 10 at 3:02am EST) | | | Thanks I have uploaded it, Now how do I add the form? | |
 FREE ADVERTISING at iDirectory COME AND ADVERTISE WITH US TODAY! |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 3,974 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pm vForum | | Re: need some help? (11th Jan 10 at 3:03am EST) | | The form is part of that page! You browse to that page, and the form will appear, and then people can fill it in! | |
|
|
Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | | Re: need some help? (11th Jan 10 at 3:15am EST) | | Oh I see. Is there anyway it can be displayed on the main home page?
Because I got this: http://thedirectory.2x.nu/submit.php But I want it on the home page. | |
 FREE ADVERTISING at iDirectory COME AND ADVERTISE WITH US TODAY! |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 3,974 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pm vForum | | Re: need some help? (11th Jan 10 at 3:22am EST) | | Put the code on the home page
Just copy & Paste the code, and remember to change the different parts! | |
|
|
Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | | Re: need some help? (11th Jan 10 at 3:25am EST) | | | Ok, so the whole code? and nothing detaches from it? | |
 FREE ADVERTISING at iDirectory COME AND ADVERTISE WITH US TODAY! |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 3,974 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pm vForum | | Re: need some help? (11th Jan 10 at 3:27am EST) | | Nope. Just copy & paste it where you want it. | |
|
|
Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | | Re: need some help? (11th Jan 10 at 3:31am EST) | | Ok I did, and this shows up above it:
"); header("location: ./confirm.html"); }else echo "-" . implode(" -", $error); } ?>
http://thedirectory.2x.nu/ | |
 FREE ADVERTISING at iDirectory COME AND ADVERTISE WITH US TODAY! |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 3,974 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pm vForum | | Re: need some help? (11th Jan 10 at 3:34am EST) | | That doesn't show up for me.... | |
|
|
Darkmage™ (Mobile) Very Senior Member
     If you love me so much, why are you walking away?
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/emo-hug.jpg) Sometimes if you love someone so much, it will actually hurt more. Posts: 2,647 Status: Offline Gender: Male Location: vForums Age: 20 Joined:
pmwww vForum | |