Reply
Who can make this form?
Old 04-11-2008, 11:15 AM Who can make this form?
Novice Talker

Posts: 7
http://www.esurvey4us.com/ipadmin/
Who can make this form. This is a check IP form.
Thanks so much!
zpilusm is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-11-2008, 12:38 PM Re: Who can make this form?
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
what exactly does it do lol
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 01:28 PM Re: Who can make this form?
Novice Talker

Posts: 7
I want to make a php file can check exist IP address in database likes this form.
But I cant. Can you help me?
zpilusm is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 02:33 PM Re: Who can make this form?
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
I need to know a little more, when I test my IP, all I receive is a 'T'.
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 07:01 PM Re: Who can make this form?
Lashtal's Avatar
Ultra Talker

Posts: 309
Name: Lashtal
Maybe instead of "Help me create a form that generates my I.P. address"

He meant to say, "How do I create a form that generates the letter 'T', no matter what anybody puts into the query?"

(just joking) Wish I could help though
__________________
www.LuciferCosmetics.com
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 07:11 PM Re: Who can make this form?
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
lol.

Code:
<form action="t.php" method="get">
<input type="text" name="hello">
<input type="submit" value="submit">
</form>
and for t.php

PHP Code:
<?php 

echo 'T' 

?>
Hows that? took a long time...lol
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 09:43 PM Re: Who can make this form?
Lashtal's Avatar
Ultra Talker

Posts: 309
Name: Lashtal
Nice, lol
__________________
www.LuciferCosmetics.com
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 04-11-2008, 09:58 PM Re: Who can make this form?
Novice Talker

Posts: 7
. sorry.
The letter T appears when you type a IP which isn't exist in database.
And F if the IP exist in database.
can you help me

Last edited by zpilusm : 04-12-2008 at 01:29 AM.
zpilusm is offline
Reply With Quote
View Public Profile
 
Old 04-12-2008, 09:50 AM Re: Who can make this form?
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
okay thats better, lol.

index.php

Code:
<form action="result.php" method="GET">
<input type="text" name="IP">
<input type="submit" value="submit">
</form>

PHP Code:
<?php 

$con 
mysql_connect('localhost''mysql_user''mysql_password');
if (!
$con) {
    die(
mysql_error());

$ip $_GET['IP'];

                          
$result mysql_query("select * from mysql_table where IP = $ip");

if(
mysql_num_rows($result) > 0) {
echo 
'F';
} else {
echo 
'T';
}
That will display T if the field doesn't exist, and F if it does.
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-12-2008, 03:14 PM Re: Who can make this form?
Novice Talker

Posts: 7
thanks so much!
zpilusm is offline
Reply With Quote
View Public Profile
 
Old 04-12-2008, 05:30 PM Re: Who can make this form?
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
sure thing

I'm proud of it tbh, still learning php
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 12:20 PM Re: Who can make this form?
Novice Talker

Posts: 7
. thanks so much!
zpilusm is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 01:09 PM Re: Who can make this form?
Novice Talker

Posts: 7
I've tested this form and have a big problem.
When I type an IP in the box and select the submit button. The result always is my PC's IP.
Ex: My PC's IP is 58.187.165.20, and the IP that I type is 203.42.34.56.And this form always says the IP is 58.187.165.20.
Please help me. I want to make a form that give me the result of the IP I type.
Thanks
zpilusm is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 01:24 PM Re: Who can make this form?
Plugin-Developer's Avatar
Weightlifting CS Student

Posts: 505
Name: Nick Ohrn
I don't quite see what you're saying with the above post. What the form gives you back is what you program it to do. Generally with forms you get input from a user, process it in some way, and then return a result. If you want to return what you typed in, you could just echo it out, I suppose.
__________________
Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
Plugin-Developer is offline
Reply With Quote
View Public Profile Visit Plugin-Developer's homepage!
 
Old 05-06-2008, 03:27 PM Re: Who can make this form?
Novice Talker

Posts: 7
I'm not good at programing,especialy PHP. Please help me. Thanks
zpilusm is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 03:48 AM Re: Who can make this form?
Experienced Talker

Posts: 33
I can help you to get this form done. Let me know if you are still looking for it
__________________
Explode Business Credit E-Book
bizcredit is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 06:07 PM Re: Who can make this form?
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
Quote:
Originally Posted by zpilusm View Post
I'm not good at programing,especialy PHP. Please help me. Thanks
Could you please explain in detail exactly what you want.
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Who can make this form?
 

Thread Tools

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 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 5.18153 seconds with 12 queries