Results 1 to 7 of 7

Thread: Lets see if this is the right place...

  1. #1
    Join Date
    May 2003
    Pensacola, FL

    Lets see if this is the right place...

    I recently posted in the javascript forums, and they told me my request would probably be better using a server side script ... and I really dont know what to do... If you could look at this, then you should get what Im asking... I already looked around the php forum and didnt find what I was looking for.... Here it is... My JS Post
    Thank You


  2. #2
    Join Date
    May 2003
    Doetinchem [Holland]
    You could do it in PHP with MySQL or without MySQL..
    I prefer with MySQL because that is a lot easier to code..
    it could look like something like this:
    PHP Code:
    if ($voegtoe) {
    $server mysql_connect();
    $sql "SELECT * FROM `members` WHERE `gebrnaam` = '$gebrnaam'";
    $result mysql_query($sql);
    if (
    mysql_num_rows($result) > 0) {
    "This username is already in use.";
    else {
    if (
    $gebrnaam && $naam && $anaam && $email) {
    $server mysql_connect();
    $sql "INSERT INTO `members` VALUES ('$naam','$anaam','$woonplaats','$email','$gebrnaam','normaal','$select','$leeftijd','$w8wrd')";
    $result mysql_query($sql);
    "You registration in completed";
    else {
    "You forgot to fill in some information";
    <form action="index.php?act=aanmelden" method="POST">
    <td>Username: </td><td><input type='text' name='gebrnaam'></td>
    <td>Password: </td><td><input type='text' name='w8wrd'></td>
    <td>Name: </td><td><input type='text' name='naam'></td>
    <td>Last name: </td><td><input type='text' name='anaam'></td>
    <td>Town: </td><td><input type='text' name='woonplaats'></td>
    <td>E-mail: </td><td><input type='text' name='email'></td>
    <td>Gender: </td><td><select name='select'>
    <option value='man'>male</option>
    <option value='vrouw'>female</option>
    <td>Age:</td><td><input type='text' name='leeftijd'> </td>
    <td><input type='submit' name='voegtoe' value='Register!'> </td>
    Some variables are Dutch sorry for that
    And there aren't many checks like an email-check

    greetz Koen
    Last edited by koeniepoenie; 05-25-2003 at 12:43 PM.
    -- Koen in da House --

  3. #3
    Join Date
    May 2003
    Pensacola, FL
    Ok I put the code into a .html under the body but I think that would be wrong? What do I do with the code is what Im asking? Also what do I save it as?


  4. #4
    Join Date
    May 2003
    Pensacola, FL
    Well... let me just get all my questions out now, because once I figure out how to make a registry page, then I am going to move into if the on registration can the info be automatically saved? Can someone make me a script where on the login form it will contain this...

    Link To My Register Page
    *Which both have to be filled out in order to submit... If accepted then move onto page, but if not then alert...

    And on the register page if it would be possible to make it where once you submitted the form


    filled out completely then I will get an email, but also the information (Username & Password) they submit will automatically be recorded into the database so they can log in? I know Im probably asking too many questions, and Im sorry ANother question I have is that can this be bypassed by anyone or can any find a way around it? Also thanks to anyone that helps. If you do reply try to walk me through step by step please because Im dummy in PHP...

    Last edited by JDM71488; 05-25-2003 at 01:50 PM.

  5. #5
    Join Date
    Dec 2002
    High on life
    Ok, it sounds like you need more of a custom script. What you are asking is a bit beyond the scope of this forums. There would be many willing to do this as a contract programming job (myself included), but that may get expensive. My advise to you would be to begin learning PHP, starting with some easier scripts. Also, you will want to make sure your server supports PHP and mySQL (or someother database). To check if your server supports PHP, try this. Note that PHP scripts must be renamed to .php (or .php4 for some servers).

    PHP Code:
    echo "I have PHP!";
    Run that and check the output.

    You could, perhaps, scour the internet for a free script doing what you are looking for, if you don't want to take the initiative to learn PHP...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  6. #6
    Join Date
    May 2003
    Pensacola, FL
    Thanks pyro... Im going to take your advice on learning php. But I tried that test.php... Well I am currently through cox.net for my web site. And when I uploaded test.php to the server, and viewed it. It displayed the whole code. Is it supposed to do that? I dont think it is, not sure, but I renamed it to .php4 as you said. And still same thing. Is anything wrong? I think my server just doesnt support php... it wont allow me to post either... Thats why Im going to get a domain, when I get some income .


  7. #7
    Join Date
    Feb 2003
    If you just saw the code, tat does mean that your server doesn't support PHP. Never mind.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.40182 seconds
  • Memory Usage 2,910KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates