Jump to content

phpme1221

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Everything posted by phpme1221

  1. thanks aykay, should i follow example 2 #2: "function submitAllDocumentForms()" - Submit all forms in document ?
  2. 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 ?
  3. Aykay you around , yes im short of begging, thanks
  4. i saw this, will something like this work? count=0 while(document.forms[count]){ document.forms[count].submit() count++ }
  5. so in the function something to increment the form name using count , like name=form1 name=form2 but how do you code that ?
  6. 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
  7. Thanks aykay for getting back to me, but the function knows the # of forms to submit? just dont kow enough fo js to do it.
  8. Hi aykay, doesn't it appear as 1 form in the code after the foreach but in the browser it contains possibily multiple forms, so how to i submit once? thanks
  9. there have been soo many different response not sure which one to go with, use button intead fo submit , use a function use js use ajax, well i dont know enough of either gosh please help aykay
  10. okay sounds easier with 1 submit button, now can you start me off with my example? please please
  11. the problem now with multiple submits button based on the # of servers a user needs to register ( in the array ) how do you submit each form without refreshing the page?
  12. 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 THANKS AYKAY
  13. Hi Aykay, Can you help me out once more, please how do i submit the multiple form with the different host? Here is what the form looks like [attachment deleted by admin]
  14. Hi Aykay, Now how to i have only 1 submit for multiple hosts? I changed it to one submit instead everytime a user have to hit the submit button. Thanks
  15. ok i have figure out how to pass the 2nd array or variable, done. sweet
  16. 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.
  17. 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!
  18. Can someone help with a form drop down from an array? The array is not known until you print_r mean could be 2 could be 10 values in the array. Thanks
  19. 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?
  20. 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?
  21. 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.
  22. 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
  23. my goodness you are on fire i thought you need to clear it out first or unset the varibale/values.
  24. everytime i hit refresh does nothing i tried removing history off browser displays the same info....
×
×
  • 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.