Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-06-2005, 04:23 PM   #1
Member (6 bit)
 
Join Date: Jul 2005
Posts: 53
Can someone write a simple html or php page for me

Ok i am wanting an IM list page thingy where someone goes to a form puts their name in one field and then there is like 4 other fields: MSN, YIM, AIM, IRC and they put their names in their and then click submit and it puts it in alphabetical order in a list i want it to be as simple as possible so if you can make it in html and make it like 2 pages do that i was told that it would only take like 5 minutes to make so i dont really think i would need to pay you but if you really need me to pay you then i guess i will thanks
leglez is offline   Reply With Quote
Old 09-06-2005, 05:49 PM   #2
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
Have you looked up on google for a similar program source code? Im sure there is something that you might just have to alter a bit and it will do what you want.
__________________
RiotCats.com, an internet domain specifically fabricated and visually erected for the appreciation of the feline kingdom!
rspassey is offline   Reply With Quote
Old 09-06-2005, 06:09 PM   #3
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
Can you expand a little bit on what you want to do? If you give me a better idea, I can develop something quick for you. Shouldn't be hard, no.
__________________

Tyler A. Thompson
Small Business Networking Services Specialist
tyler@derbydigital.com
kstatefan40 is offline   Reply With Quote
Old 09-06-2005, 07:41 PM   #4
Chop Chop
 
catacon's Avatar
 
Join Date: Jan 2005
Location: St. Louis, MO
Posts: 1,035
Send a message via AIM to catacon Send a message via Yahoo to catacon
Not sure exactly what you want, but I'll give it a shot.

PHP Code:

<?php

if (isset($_POST['submit'])) {
     
$n $_POST['name']; //stores name as variable n
     
$a $_POST['aim']; //stores aim handle as variable a
     
$m $_POST['msn']; //stores msn handle as variable m
     
$y $_POST['yim']; //stores yim handle as variable y
     
$i $_POST['irc']; //stores irc handle as variable i

     
if ($n && $a && $m && $y && $i) { //All info is entered
          
if ($fp fopen ('info.txt''ab')) { //open the data file
               
fwrite ($fp"$n\n""$a\n""$m\n""$y\n""$i\n\n"); //insert data into file
               
fclose ($fp);
               echo 
"Your data has been stored.";
         }
     } else {
         echo 
"Not all of the info was entered, try again.";
     }

}

?>
HTML Code:
<!--Begin Form-->

<form method="post" action="im.php">

Name: <input type="text" name="name" value="<?php if (isset($_POST['name'])) { echo $_POST['name']; } ?>" />

AIM: <input type="text" name="aim" value="<?php if (isset($_POST['aim'])) { echo $_POST['aim']; } ?>" />

MSN: <input type="text" name="msn" value="<?php if (isset($_POST['msn'])) { echo $_POST['msn']; } ?>" />

Yahoo!: <input type="text" name="yim" value="<?php if (isset($_POST['yim'])) { echo $_POST['yim']; } ?>" />

IRC: <input type="text" name="irc" value="<?php if (isset($_POST['irc'])) { echo $_POST['irc']; } ?>" />



<input type="submit" name="submit" value="Submit" />

</form>
That will take the users info and put it into a text file. Haven't tested it, but I think it should work. After each input in the form there should be a break. It didn't place those.

This should be one file called im.php, but you can change it. Just remember to change the form action to the new file name.
__________________
Main Computer: Intel Core i5 2500K | AsRock Extreme3 Z68 | Corsair Vengeance 2 x 4GB DDR3 1600 | EVGA GTX460 768MB | Western Digital Caviar 750GB 7200RPM SATAII | Mushkin 60GB SSD w/ SRT enabled | Asus 20X DVD Burner | Antec 550W Modular | Cooler Master HAF 912 w/ 4 fans | NXZT Sentry Mesh fan controller | W7 | 2 x 23" LG IPS Monitors

Laptop: Asus EEE 1000HE | 2GB RAM | Ubuntu

Laptop: Lenovo Thinkpad T60p | 4GB RAM | W7

Last edited by catacon; 09-06-2005 at 07:45 PM.
catacon is offline   Reply With Quote
Old 09-07-2005, 04:36 PM   #5
Member (6 bit)
 
Join Date: Jul 2005
Posts: 53
Ok so with that do i put it all in 1 file? Or do i put the php code in im.php and the html in im.htm

Also you say it will take it and put it in a text file im not sure if thats what i want or not here is moreso what i want:

on im.php or Index:

Code:
[Button]Submit your info[/Button] 

A

Alphie
YIM: Alphie45987289
AIM: Alphie4325
MSN: Alphie522345@hotmail.com
IRC: 4528902

Amber
YIM: Amber45987289
AIM: Amber4325
MSN: Amber6474567@hotmail.com
IRC: 4528902

B

C

D

(ect)
Submit.php or whatever

Code:
Name: |Text Box|
Aim: |Text Box|
Yim: |Text Box|
Msn: |Text Box|
IRC: |Text Box|

[Button]Submit[Button]
Now that i think of it it would be better to use sql because i dont want a bunch of text files so if someone could make the php and sql for me i would appreciate it
leglez is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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



All times are GMT -5. The time now is 04:57 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2