Jul 26, 2008

"register.php" - !The Interesting Point!

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming
Pages: 1, 2

free web hosting

"register.php" - !The Interesting Point!

alex1985
Currently, I making the registration page for my web-site which will appear to be educational. There is the one things I would like to have it inside the registration page.

Basically, I want to have a field which is called like "University", when, the user clicks on it, it automatically, lists the Universities based on the chosen country. Therefore, there are supposed to be fields like "Country" and "State or City", on which the University or School will be used.

Oh, the entries might be: "School", "College" or "University", and based on them as well as the locations, the educational institutions will be presented in the drop-down menu inside the registration page.

Thanks.

I will help you will help me or just give me some of the concepts towards doing it.

Reply

rvalkass
You would need a list of every educational establishment in the world, along with where they are in each country and what type of establishment they are (school, college, university). That data will be very difficult to find, and almost impossible for you to compile yourself.

Reply

alex1985
This work will take like ages to complete it. I do not think that there is the manual way to do it!


Reply

alex1985
So, nobody did not get the point how I can accomplish it?!

Reply

rvalkass
Like I said, the main problem is getting hold of comprehensive worldwide data for educational establishments. If you can provide us with that data then we might be able to integrate it with your form. Otherwise, we don't really have a lot to work with.

Reply

Erdemir
I agree with rvalkass.
In the U.S. there are 3040 universities. List: http://nvo.com/louisvuitton/listofeverycol...versityintheus/
Whole the world there are hundred thousands of universities.
Do you have to show dropdown menu. Instead the member can type his university. This is easier then collecting the list of all university in the world. Here there is one problem that member can lie. biggrin.gif

Reply

alex1985
All right. Thanks. So, I need to do it manually. So, can you write some sample code over here?

Reply

Erdemir
QUOTE(alex1985 @ May 17 2008, 11:51 PM) *
All right. Thanks. So, I need to do it manually. So, can you write some sample code over here?


Some sample codes I have written myself, here.

If you want to show dropdown menu use this:

selectcountry.php
CODE
..............
<form name="form1" action="selectcountry.php" method="GET">
Select your country:
<select name="country" onChange="form1.submit();">
  <option value="">Select your country</option>

  <option value="USA">United States of America</option>
  <option value="Turkey">Turkey</option>
  <option value="UK">The United Kingdom</option>
  <option value="Germany">Germany</option>
  <option value="Russia">Russia</option>
  <option value="China">China</option>
  .............
  //place here all the countries in the world :D (by typing all of them or selecting from a query)
  .............
</select>
<input type="submit" name="submit1" value="List the universities in this country">
</form>
<?
if ($_GET['country']) {
?>
<form name="form2" action="university_selected.php" method="GET">
<?
$myconnection1 = mysql_connect($db_host , $db_user , $db_password) or die ("Can not connect database:".mysql_error());
mysql_select_db( $db_name , $myconnection1 ) or die ("Can not select database:".mysql_error() );
$myquery1 = mysql_query("SELECT * FROM university WHERE country=".$_GET['country']." ORDER BY university_long_name ASC",$myconnection1) or die ("Can not select universities:".mysql_error());
  if (mysql_num_rows($myquery1)>0) {
?><select name="university_id" onChange="form2.submit();">
<?
    while ($recordset1 = mysql_fetch_array($query1)) {
    ?><option value="<? echo($recordset1["university_id"]); ?>"><? echo($recordset1["university_long_name"]); ?></option><?
    } // while ($recordset1 = mysql_fetch_array($query1)) finishes
?></select>
<input type="submit" name="submit2" value="Select this university">
</form><?
  } //if (mysql_num_rows($myquery1)>0) finishes
  else {
?>No university has been found in this country or no university has been written for this country<?
  } // else -2 line finishes
}  //if ($_GET['country']) finishes
?>

...................
You must analyze the selected university in university_selected.php file.


If you want to show only two editboxes use the following(this is the easiest):
register.php
CODE
.................
<form name="form1 action="yourfile.php" method="POST">
................
Type your country: <input type="text" name="country" value=""><br>
Type your university: <input type="text" name="university" value=""><br>
................
</form>
.................
cool.gif
As I said before, in the second example, the member applicant can say lie.

In the first example, I can write the structure of table "university", if you want to.

 

 

 


Reply

alex1985
Thanks for the codes. I will check them as soon as possible and them post a reply concerning them.

Reply

tracdoor
Your really serious about finding every university in the world? good luck!

You can just use a simple HTML form to list country's and then another one that would list all the universities in that country, then use PHP to enter it into a database.

If you want the page to not redirect after the country is selected, you'll need to use AJAX.

Reply

Latest Entries

alex1985
AJAX technology is the same as Java language. It makes your web-site more attractive then others. An example, can be a password meter, you know when you type a password, it gives you some result like if it is strong, weak or normal.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Similar Topics

Keywords : , register, php, interesting, point

  1. Animal Orientation Behavior
    some interesting facts... (0)
  2. Enzymes And Health
    Some interesting info on enzymes (0)
    Enzymes act as catalysts in living organisms which allow important chemical reactions to occur at
    lower temperatures. They are not altered in the process and can be used in many reactions. Most of
    the chemical reactions that occur in living organisms are regulated by enzymes and would happen much
    slower without them. For example, without the digestive enzyme carboxypepdidase, it would take
    seven years to digest a hamburger. Ethyl carbamate is a compound found in fermented beverages that
    can cause cancer in various organisms. Its precursor is urea, an intermediate du....
  3. I Bought A Domain Name Through Godaddy And I Need To Know How To Point It At My Trap17 Site Help Plz.
    (2)
    I would like to point my .com at my forums on here but am unsure how to do it. BTW my site is
    http://racuria.trap17.com/forums ....
  4. An Interesting Video, A Must See
    (1)
    Its an english video so the monitaries will be in £ sterling (pounds) so just double them for
    dollars. Its more to do with the evolution of technology and the effects on jobs however, like i
    said specific to the uk with a bit of patriotic stuff about us in the 1900 but definately worth a
    watch!!! edit* turns out there are multiple versions: US Version UK Version ....
  5. An Interesting Approach To Email Verification...
    (6)
    I was thinking just now and I came up with a very interesting solution for email verification.
    It's actually based off of how alot of spammers get your email: Dynamic images. You could have
    a dynamic image display in the email that activates the account when loading it. The only downfall
    to it is if your users are using a an email provider such as Gmail, the images will be blocked, but
    I have a solution for that too. You could have the image say "Congratulations your account has been
    activated". And then below the image in plain text write "If you do not see the....
  6. Indonesia
    people who live or interesting in indonesia (6)
    hallo mate.. i am from indonesia.., so if you are indonesian., please let me know., /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> and for enyone who is
    interesting in indonesia. i will welcome you., /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" /> /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" />....
  7. 1 Step Complete (register)
    I just register (2)
    Hello I was just looking for Free host at google a few minutes ago, now im here trying to understand
    whats next.......
  8. What Kinda Coke Ya'nt With That?
    Share your experiences of what you experienced from point A to point B (2)
    I was born in New York but raised in WA. In my late teens and early twenties I lived in the south
    for a short stint. Now before anyone gets the idea that I am putting any other state down, just
    quit. I started this thread to share the differences between places and to give others the
    opportunity to share the same. So I lived in Florida for awhile. One of the more confusing things
    to be asked was " You ain't from 'round here are ya?" No. How could you tell? "'Cause
    you got an accent. Don't worry. It's nothin' to be 'shamed of." Huh?? LOL! ....
  9. Domain Name Hyperlinking Question?
    Hyper Link does not point (2)
    So I try to link to forums.gnarfard.com using a href=link here but it says
    gnarfard.com/forums.gnarfard.com How do I get it so it only links to forums.gnarfard.com and
    leaves the domain name behind thanks for the HTML help /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  10. Ashes
    interesting ideas for when I die (5)
    When i die I don't like bugs and being eaten by my own enzymes so I want to be "turned to ash"
    or cremated. so I was wondering what to do with the ashes.. I want something cool and interesting.
    My idea is that they get turned into a diamond and then that diamond is flown into space and left
    there! To float about. I don't personally believe in a God/Higher being so don't worry
    about what it is Anyone got any good/better ideas?....
  11. Point System
    (8)
    Hello, I'm looking for a point system for invision 1.3. i'm looking for something like
    what is used here at trap17. dose any one know where i can find one.....
  12. Wireless Access Point Setup
    An issue of range. (12)
    I have a problem with how my current wireless router is set up, in a certain room I do not get a
    signal because of all the obstructions in the way of the signal. So instead of moving the wireless
    to another point and risk having the same problem but for a different room I have a question. If I
    buy another wireless router and set it up in the room of no signal, then run a Ethernet from that
    router to my wireless one downstairs it should work. But instead of having two separate wireless
    connections I was wondering if there is an specific way to use a wireless router as an....
  13. Register
    (1)
    Where do i register? thanks! if you know where pm because i have to go now!! thnx....
  14. Fyrebug Doom
    point, click, shoot, kill demons (0)
    found this awesome game online: Fyrebug Doom http://www.fyrebug.com/displaygame.php?gameid=830
    its all the beauty of the old PC game, "Doom", but simplified into something you can play while at
    work /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Just
    point, click, and shoot, and the demons and imps are no more! have a happy holidays,
    guys!!!....
  15. Need To Find A Place With A Wifi Point?
    (3)
    Well in my usual browsing for interesting stuff I came across this little doodad, knowing the fact
    that most Wifi enables laptop will have something telling what points are available. However, if
    your unsure and going on a trip then this website will help you find a WIFI Hotspot either pay or
    free so you can connect your computer up and enjoy some good ole internet. Especially useful if you
    plan to stay in a hotel or motel for the night or a couple of days.....
  16. A New Discover Point Up New Scenario For First Life On Earth
    (1)
    What do you think about how the first life is coming ? A new discover on Liquid
    crystal phases of tiny DNA molecules may change it your old mind. Liquid crystal phases of
    tiny DNA molecules point up new scenario for first life on Earth A colorful microscope
    image showing that a solution of tiny DNA molecules has formed a liquid-crystal phase. The DNA
    molecules pair to form DNA double helices, which, in turn... Click here for more information.
    QUOTE A team led by the University of Colorado at Boulder and the University of Mi....
  17. Point Pushing,map Speciality,ranked Matches
    (0)
    When I first started playing this game I found it absurd that ranked games could be played through
    any form other than automatch. The current system invites this type of cheating, politics, and under
    the table deals. Even if it isn't happening this seems a unnecessary risk for a game that was
    marketed since it's inception toward "Pro gaming" with things like battlecast, commentators, and
    all the other amazing surrounding features. Further the current lobby ranked game system invites
    players to specialize on a single map without having to learn others, this furth....
  18. Data Structures -- Linked List -- Point Of Merging
    (2)
    Given two singly linked lists with both of them merging at some point. Find the position at which
    they merge. Eg: 1->30->50->65->2->59 88->46->65->2->59
    The above two linked lists merge at 65. Find this node where they merge.. Question
    Courtesy: Antony(Friend) One possible Answer A simple answer would be to find the length of
    both the linked lists and have two pointers, one for each linked list. Move (difference in lengths)
    steps in the longer linked lists and then start moving both the pointers by one every t....
  19. 'guitar Hero Iii: Legends Of Rock' (some Interesting News)
    Videogame review: Latest in the beloved "Guitar Hero" series d (0)
    When MTV bought Harmonix, developer of the ultrasuccessful "Guitar Hero" vidgames, Activision's
    inhouse team Neversoft was left with the unenviable position of taking over a beloved series. Though
    there's little that will surprise or amaze those familiar with the franchise, the good news is
    that "Guitar Hero III" plays just as well as its predecessors and refines an already well-balanced
    formula by giving the game a bit of story and excellent online play. It remains to be seen how it
    will stack up against "Rock Band," Harmonix's upcoming game for MTV, but for....
  20. Google Offers $30 Million For Robotic Rover On The Moon
    A challenge created by Google, very interesting! (9)
    News: Google offers $30 million for robotic rover on the Moon Source:
    http://technology.timesonline.co.uk/tol/ne...icle2452806.ece Now this is interesting! Google
    is offering 30 million dollars to the one person or the one company that puts a robotic rover on the
    moon, i mean exactly, that lands a robotic rover on the moon and then to beam images of the lunar
    surface back to earth, roam for a minimum of 500m and then to take a series of panoramic images and
    videos to be streamed on the Google website. You have until the end of 2012 to complete this challe....
  21. Five Point Someone By Chetan Bhagat
    My Favourite Book (1)
    Book Name - Five Point Someone Author - Chetan Bhagat In the Introduction Writer says thanks to
    Mr. Bill Gates For for giving such a wonderful text editor MS Office! This is a story of 3
    Engineers and their life at IIT (A Famous Engineering Institution in India).It tells you about how
    these people screwed their life in between and how they managed to get out of everything. It also
    tell you about the fun they had in the college.Right from the fist year to the last... QUOTE
    There are two facets to every great system : – the glory of being great, the applaus....
  22. Using My Domain Name [resolved]
    Letting my domain point to my trap17 web space (9)
    Hi folks, my trap17 subdomain is vlaanderen-flanders.trap17.com. I have now bought the domain name
    vlaanderen-flanders.org.uk, how can I make that name point to my trap17 subdomain? I tried using
    "Addon domain", but the login is really confusing: In the first box it asks you for your domain,
    that's simple enough, however, in the second one, it asks you for Username/Subdomain, a blank
    box followed by.vlaanderen-flanders.trap 17.com. I don't know what to fill in in that box, it
    doesn't work when I dill in my username to access the control panel, nor does it wor....
  23. Adding Your Website To Google
    How to register with google (20)
    Hi everyone. Hopefully here im going to tell you how to register yourself with the Google search
    engine and get yourself in their results. Ill start the tutorial assuming you already have Meta
    tags or other search engine optimisation techniques in place. This tutorial is solely about
    registering with google. At one time i thought simply using meta tags etcetera would get you listed
    in Google, i then found out that didnt work, so i wondered why, and the fruits of my labour are what
    will go into this tutorial. the first step is to get a google account, this will get y....
  24. Wikipedia + Myspace = ...
    An idea for an interesting site (38)
    It's has been awhile since I last posted an idea and winning the Trap 17 Mad Scientist award I
    feel I must post! Anyways here is an idea and I'll post the good and the bad about it.
    I'm not sure what it would be called and wiki is used WAY to much, but for now we will call it
    WikiBio. WikiBio is a site to post your bio and update it. I am not talking about a quick bio like
    on Friendster and Myspace. A full blown out bio. You write about youself all the way everything you
    know even your social security number, ok the social part was a joke, but seriously,....
  25. Enabling Port Forwarding Using Adsl Modem With Built-in Router
    How to point traffick to computer behind the Prolink ADSL modem? (11)
    Dear all brothers and sisters, /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> I am now looking for help on How to point traffics to a computer behind the
    Prolink ADSL modem I know that for traffick sending to computer behind router, we use the Port
    Forwarding! However, i didn't see any Port Forwarding Section in my ADSL modem. Could
    Anyone co....
  26. Swastika Shaped Building In San Diego
    by design or accident it's interesting (10)
    By design or accident, it's a momentary eye opening moment when you look at this image that
    Google map has captured. Click here to see for yourself . Sometimes the best method that a man can
    think of ends up twisted than what it should be perceived as. Just keep in mind that this may have
    been some architectural planning and not to promote you know what. But then again, on the ground
    level you would never know if it shaped like that. So there might be a hidden agenda.....
  27. What Is A Chupacabra?
    Very Interesting. (96)
    Has anyone heard of el chupacabra? A chupacabra is a creature that is allegedly responsible for
    draining blood or removing the organs of livestock. It's name is Spanish for "goat sucker" due
    to the earliest report of this creature in Puerto Rico where goats were completely drained of all
    blood. People still claim to see these creatures. Some other people believe that it is just like
    big foot. As people hear about it, they believe it more, which makes some think its real when in
    fact its not. Heres a picture. http://www.uncoveror.com/chupa.htm http://www....
  28. Crazy Looking C Program
    Interesting (19)
    hi friends, Have a look at the following code... Can u guess what this wud do... nope... no virus
    nor executable code... It is a completely valid and compilable C program... dont worry.. I have
    executed it on my system and it perfectly nice program /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> CODE #include <stdio.h>
    main(t,_,a) char *a; {return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
    main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94,
    -27+t, a )&&t == ....
  29. What Is The Whole Point For Being "a Vegetarian"
    (22)
    i think the whole point of being an vegetarian is you help beasts. BUT, why should you do it if no
    one else do it and the cows will die!! there have to be much more vegetarians if you want to
    stop it. so plz post here if you have to say it that i am right or not right:)....
  30. C Code, Can U Solve This?
    Another interesting problem (22)
    Hello, Look at the code given below CODE void fun(void) { /* Put your code here so
    that main does not print 20 */ } int main() { int i = 20; fun();
    printf("i = %d\n", i); return 0; } 1. You are allowed to put your code
    ONLY in fun. 2. You are not allowed to change even one character in main. 3. You should not use
    functions like exit(),abort() in the function fun. How do I manipulate and change the value of i?
    Have fun.......

    1. Looking for , register, php, interesting, point

Searching Video's for , register, php, interesting, point
Similar
Animal
Orientation
Behavior -
some
interesting
facts...
Enzymes And
Health -
Some
interesting
info on
enzymes
I Bought A
Domain Name
Through
Godaddy And
I Need To
Know How To
Point It At
My Trap17
Site Help
Plz.
An
Interesting
Video, A
Must See
An
Interesting
Approach To
Email
Verification
...
Indonesia -
people who
live or
interesting
in indonesia
1 Step
Complete
(register) -
I just
register
What Kinda
Coke
Ya'nt
With That? -
Share your
experiences
of what you
experienced
from point A
to point B
Domain Name
Hyperlinking
Question? -
Hyper Link
does not
point
Ashes -
interesting
ideas for
when I die
Point System
Wireless
Access Point
Setup - An
issue of
range.
Register
Fyrebug Doom
- point,
click,
shoot, kill
demons
Need To Find
A Place With
A Wifi
Point?
A New
Discover
Point Up New
Scenario For
First Life
On Earth
Point
Pushing,map
Speciality,r
anked
Matches
Data
Structures
-- Linked
List --
Point Of
Merging
'guitar
Hero Iii:
Legends Of
Rock'
(some
Interesting
News) -
Videogame
review:
Latest in
the beloved
"Guitar
Hero"
series d
Google
Offers
$30
Million For
Robotic
Rover On The
Moon - A
challenge
created by
Google, very
interesting&
#33;
Five Point
Someone By
Chetan
Bhagat - My
Favourite
Book
Using My
Domain Name
[resolved] -
Letting my
domain point
to my trap17
web space
Adding Your
Website To
Google - How
to register
with google
Wikipedia +
Myspace =
... - An
idea for an
interesting
site
Enabling
Port
Forwarding
Using Adsl
Modem With
Built-in
Router - How
to point
traffick to
computer
behind the
Prolink ADSL
modem?
Swastika
Shaped
Building In
San Diego -
by design or
accident
it's
interesting
What Is A
Chupacabra?
- Very
Interesting.
Crazy
Looking C
Program -
Interesting
What Is The
Whole Point
For Being
"a
Vegetarian&q
uot;
C Code, Can
U Solve
This? -
Another
interesting
problem
advertisement



"register.php" - !The Interesting Point!



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE