Jump to content

phpme1221

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Posts posted by phpme1221

  1. Thanks aykay, what should be in the form, so that the js code can use to reference?  keep in mind this is an unknown array of servers. thanks 

    <form name = ? or value = ?

    <input type='submit' name='entdb' value='Register' >

    </form>";

     

    should it be a type = submit or type = button ?

  2. Hi Aykay,

     

    Thanks again, again we dont know # of forms this will generate, a user can have 1 server to register or 10 server to register.  Whats really confusing in the after th foreach;  there is only 1 <form tag so there is only 1 name but if you run the function you mention in you last poist there are 3 different form names to consider but i have only 1, even though it appears as more depending on amount a servers onwned by the user passed in the url

     

     

  3. i just want each individual owner of the server to register their server/s in the link they each get in the email.  I have show how the link looks like in the previous post, it will show each of the server they own and now they have to just register it by filling in the forms,

     

    either i have 1 submit button for all forms but that seems way too difficult for me OR have multiple submit buttons for each servers they need to regiseter (own)  , remember a user may only need to register 1 server ( own 1 server )  hope that explains it much simpler than it sounds and to code  ;D

     

    THANKS AYKAY

  4. Thank Aykay coming to the rescue,

     

    I want the user to register there servers.  they will be sent an email and then they click on email with there server info with identification, which leads me to the next questions how do or if i could add another array or variable in same url their email address for identiification?  After they click on email they will be presented with a form to fill in their Server info to lease or use another 90 days.  What do you think is the easier of the 2 ways, a drop down or show the # of forms to fill in that corralates with the number of host from array? 

     

    if they dont respond within 1 week i will resend email, and on the 2nd week from the day i send out i will shutdown server.  I can schedule that part. Hope that helps.

  5. Hi Aykay,

     

    Can you help me out once again, im trying to do a drop down instead of haveing the user see all the fields to enter, i want to show only 1 set of fieds with a drop down of host to choose from to enter registration, can you help me out, please

     

    I have a so far gathered from the web but its confusing

     

     

    Reg.php

     

    //function dropdown

    function generateSelect($name = '', $VM = array()) {

            $html = '<select name="'.$name.'">';

            foreach ($VM as $value) {

                    $html .= '<option value='.$value.'>'.$VM.'</option>';

            }

            $html .= '</select>';

            return $html;

    }

     

    $html = generateSelect('VM', $value);

     

    <select name="Host">

        <option value="0">Choose a server</option>

        <?php showOptionsDrop($VM, null, true); ?>

    </select>

     

     

    HELP!

  6. AyKay,

     

    After a user submitts the form, how do i end that session basically?  i dont want to use the below code , causes too many confusion with browser staying up and not clearing cache.

     

    session_start();

    if(isset($_SESSION['view'])){

    if($_SESSION['view'] == 1){

      //exit("Host already registered!");

      header("Location: index.php");

    $_SESSION['view'] = 1;

     

     

    The user shuoud be able to view his hosts but unable to resubmit prompting an error message.  Before the user submits the user can view as many times his list of host, but as soon as the user hits submit he/she is not longer able to resubmit even from old emails?  i have created a field in mysql db, Register (yes or no) so if you hits submit then it is registered if he has not it is consider a NO not registered.  Therefore once he/she hits the submit, he or she is registered so how do i check everytime when the use hits submit if the parameter register is yes or no for that user?

  7. no i did not see that in the earlier post; but thanks aykay,  what if you dont know the # of host to put in, shouldnt it be onw giant sql insert at the end ?

     

    is reg.php the target page that the array is sent to?  YES

     

    I am thinking, what if the user made a mistake in submitting form and wants to click the back button he will get the redirect page right?  Anyway around this problem? suggestions?

  8. Thanks Aykay,

     

    Now how do i start using or inserting the values into the db based on the Host from the array i have passed into reg.php? 

     

    i plan on using radio buttons combo boxes and text boxes.  just to start me off thanks.

  9. yes and no,

     

    ok whats happening is if the user does not remove the email keeps it for a while, that user still sees the values of the array, howerver as soon as i hit the refresh i get the message.  (already registered)

     

    would it be better to not to see the parameter everytime they may click on an older email?  i tried redirecting them to another page to clear up the url with

    header("Location: index.php"); doesnt work though

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.