Re: [PHP-DB] Placing a form on a page
Ethan Rosenberg, PhD wrote: On 05/06/2013 12:48 AM, tamouse mailing lists wrote: On Sun, May 5, 2013 at 11:22 PM, Ethan Rosenberg, PhD erosenb...@hygeiabiomedical.com wrote: Dear List - I apologize if I offended some of you. I will see that it does not repeat. I am trying to center a form on the top of a page. Here is the form: What you're asking about has nothing to do with PHP. You want help with HTML and CSS, and front-end design. snip You are absolutely correct. I meant to label the post as HTML - Placing a form on a page. My logic was that a PHP programmer will know HTML. If you are aware of a HTML/CSS mailing list, kit would be appreciated. If anyone on the list would be able to answer my question, it would also be appreciated. Ethan http://www.css-discuss.org/ rhetoricalAnd why are you giving an element fixed positioning and expecting it to align with floating elements?/rhetorical -- Cheers David Robley Freedom is just chaos with better lighting. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Placing a form on a page
I would suggest googling your problem. In this case centering an HTML form. Hth, Best, Karl DeSaulniers Design Drumm http://designdrumm.com On May 6, 2013, at 12:00 AM, Ethan Rosenberg, PhD wrote: On 05/06/2013 12:48 AM, tamouse mailing lists wrote: On Sun, May 5, 2013 at 11:22 PM, Ethan Rosenberg, PhD erosenb...@hygeiabiomedical.com wrote: Dear List - I apologize if I offended some of you. I will see that it does not repeat. I am trying to center a form on the top of a page. Here is the form: What you're asking about has nothing to do with PHP. You want help with HTML and CSS, and front-end design. snip You are absolutely correct. I meant to label the post as HTML - Placing a form on a page. My logic was that a PHP programmer will know HTML. If you are aware of a HTML/CSS mailing list, kit would be appreciated. If anyone on the list would be able to answer my question, it would also be appreciated. Ethan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Placing a form on a page
Centering a form is a simple process - as you stated about your first example form. So - obviously the problem is in all that other crap you presented to us, expecting us to do your debugging. I still don't know what you want to do - perhaps you could have given us a para on what it is wrong. Are you trying to center multiple forms, or just align multiple forms in some fashion? Once again - learn some new stuff and develop code that is easier to read and perhaps you'll find more of your own errors. IE - read about heredocs. (That IS php!) (You might also want to read about security and protecting yourself from malicious input values.) Hope I didn't offend you again, but this post was just more of the same old Ethan Phd stuff. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Placing a form on a page
Hi, Check if you have created a class in which you have already mentioned the font size. If that so look it and change it inside the class. Also, check if you have created or mentioned the font size in CSS. I hope this will help you. On Mon, May 6, 2013 at 6:30 PM, Jim Giner jim.gi...@albanyhandball.comwrote: Centering a form is a simple process - as you stated about your first example form. So - obviously the problem is in all that other crap you presented to us, expecting us to do your debugging. I still don't know what you want to do - perhaps you could have given us a para on what it is wrong. Are you trying to center multiple forms, or just align multiple forms in some fashion? Once again - learn some new stuff and develop code that is easier to read and perhaps you'll find more of your own errors. IE - read about heredocs. (That IS php!) (You might also want to read about security and protecting yourself from malicious input values.) Hope I didn't offend you again, but this post was just more of the same old Ethan Phd stuff. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- *Best, * *Gu®u CEO Founder at, www.myshopads.com *
Re: [PHP-DB] Placing a form on a page
On 05/06/2013 09:35 AM, OJFR wrote: Ethan, to center your form you just need to chance a little bit its structure as follows: div class=to_center/div div id=frm form name=poster method=post action= input type=text name=cnum hidden=hidden/input input type='hidden' name='welcome_already_seen' value='already_seen' ?php echo centerinput type='submit' value='Validate Choice' //center; echo /form; ? /div div class=to_center/div And go to your CSS file and add this lines: .to_center { width: auto; } That will solve your problem because when you have a fixed div between two columns with an auto width declared, those two columns take the exact width to fill completely the width of their container (adding also the fixed width of the div of your form). If you have any trouble understanding this just ask 'cause English is not my first language, so I'll try to explain myself better. I also recommend that if you are having problems with CSS and HTML structure, you should consider to use Twitter Bootstrap. Google it and I guess it will be pretty useful for you in the future. Greetings, Osain. -Mensaje original- De: Ethan Rosenberg, PhD [mailto:erosenb...@hygeiabiomedical.com] Enviado el: lunes, 06 de mayo de 2013 12:23 AM Para: PHP Database List Asunto: [?? Probable Spam] [PHP-DB] Placing a form on a page Dear List - I apologize if I offended some of you. I will see that it does not repeat. I am trying to center a form on the top of a page. Here is the form: div id=frm form name=poster method=post action= input type=text name=cnum hidden=hidden/input input type='hidden' name='welcome_already_seen' value='already_seen' ?php echo centerinput type='submit' value='Validate Choice' //center; echo /form; ? /div It is aligned on the p;age with the following css - #frm{ position: fixed; top: 5%; left:42%; } It aligns perfectly with this form function show_welcome() { $custnum = isset($_REQUEST[Cust_Num]) ? $_REQUEST[Cust_Num] : ; $first_name = isset($_REQUEST[Fname]) ? $_REQUEST[Fname] : ; $last_name = isset($_REQUEST[Lname]) ? $_REQUEST[Lname] : ; $street = isset($_REQUEST[Street]) ? $_REQUEST[Street] : ; $city = isset($_REQUEST['City']) ? $_REQUEST['City'] : ; $state = isset($_REQUEST['State']) ? $_REQUEST['State'] : ; $zip = isset($_REQUEST['Zip']) ? $_REQUEST['Zip'] : ; $phone = isset($_REQUEST[Phone]) ? $_REQUEST[Phone] : ; $date = isset($_REQUEST['Date']) ? $_REQUEST['Date'] : ; $notes = isset($_REQUEST['Notes']) ? $_REQUEST['Notes'] : ; $p1 = isset($_REQUEST['PH1']) ? $_REQUEST['PH1'] : ; $p2 = isset($_REQUEST['PH2']) ? $_REQUEST['PH2'] : ; $p3 = isset($_REQUEST['PH3']) ? $_REQUEST['PH3'] : ; echo br /br /; echo center; echo form method=\post\; echo strongCustomer Number:/strong input type='text' name='Cust_Num' value='$custnum' //inputbr /br /; echo strongFirst Name:/strong input type=\text\ name=\Fname\ value='$first_name' /; echo strongLast Name:/strong input type=\text\ name=\Lname\ value='$last_name' //inputbr /br /; echo strongStreet: /stronginput type= 'text' name= 'Street' value='$street' //input; echo strongCity:/stronginput type= 'text' name= 'City' value='$city' //input; echo strongState:/strong input type= 'text' size='2' maxlength='2' name= 'state' value='NY' //inputnbsp; echo strongZip Code:/strong input type= 'text' size='5' maxlength='5' name= 'Zip' value='10952' //inputbr /br /; echo /center; echocenter; echodiv id='phn' ; echo strongPhone:/strong (input type='text' size='3' maxlength='3' name='PH1' value='$p1')/input; echoinput type='text' size='3' maxlength='3' name='PH2' value = '$p2'/input; echoinput type='text' size='4' maxlength='4' name='PH3' value = '$p3'/inputbr /br /; echostrongDate:/stronginput type='text' size='10' maxlength='10' name='Date' value='$date'/inputbr /br /; echo /center; // echo /div; echo center; echo input type='submit' /br /br /; echo nbspnbspnbspinput type='reset' value = 'Clear Form' /; echo input type='hidden' name='welcome_already_seen' value='already_seen'; echo input type='hidden' name='next_step' value='step2' /; echo /center; // goto step2; ? /form With this it is offset to the right. echo centerstrongDo you wish to enter a Payment?/strong/center; echo form name='form2' method='post'; echocenterstrongName: $_SESSION[Lname] echo $_SESSION[Fname]/strong/center; echo centerinput type='submit' name='button' value='YES'/center; echo input type='hidden' name='welcome_already_seen' value='already_seen'; echo input type='hidden' name='next_step' value='step5' /; echo /form; echocenterstrongDo you wish to enter a Charge?/strong/center; echoform name='form1' method='post'; echo centerstrongName: $_SESSION[Lname], $_SESSION[Fname]/strong/center; echo centerinput type='submit' name='button' value='YES' onclick='ClearScren'/center; echo input type='hidden' name='welcome_already_seen'
Re: [PHP-DB] Placing a form on a page
On 05/06/2013 02:03 AM, David Robley wrote: Ethan Rosenberg, PhD wrote: On 05/06/2013 12:48 AM, tamouse mailing lists wrote: On Sun, May 5, 2013 at 11:22 PM, Ethan Rosenberg, PhD erosenb...@hygeiabiomedical.com wrote: Dear List - I apologize if I offended some of you. I will see that it does not repeat. I am trying to center a form on the top of a page. Here is the form: What you're asking about has nothing to do with PHP. You want help with HTML and CSS, and front-end design. snip You are absolutely correct. I meant to label the post as HTML - Placing a form on a page. My logic was that a PHP programmer will know HTML. If you are aware of a HTML/CSS mailing list, kit would be appreciated. If anyone on the list would be able to answer my question, it would also be appreciated. Ethan http://www.css-discuss.org/ rhetoricalAnd why are you giving an element fixed positioning and expecting it to align with floating elements?/rhetorical == David - http://www.css-discuss.org/ Thanks. rhetoricalAnd why are you giving an element fixed positioning and expecting it to align with floating elements?/rhetorical I wanted the Validate at a fixed position on the page. That's the only thing that worked for this newbie. Also, the page will scroll past it and it will not get in the way of the data. [which can be long]. Ethan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Placing a form on a page
On 05/06/2013 02:03 AM, David Robley wrote: Ethan Rosenberg, PhD wrote: On 05/06/2013 12:48 AM, tamouse mailing lists wrote: On Sun, May 5, 2013 at 11:22 PM, Ethan Rosenberg, PhD erosenb...@hygeiabiomedical.com wrote: Dear List - I apologize if I offended some of you. I will see that it does not repeat. I am trying to center a form on the top of a page. Here is the form: What you're asking about has nothing to do with PHP. You want help with HTML and CSS, and front-end design. snip You are absolutely correct. I meant to label the post as HTML - Placing a form on a page. My logic was that a PHP programmer will know HTML. If you are aware of a HTML/CSS mailing list, kit would be appreciated. If anyone on the list would be able to answer my question, it would also be appreciated. Ethan http://www.css-discuss.org/ rhetoricalAnd why are you giving an element fixed positioning and expecting it to align with floating elements?/rhetorical == David - http://www.css-discuss.org/ Thanks. rhetoricalAnd why are you giving an element fixed positioning and expecting it to align with floating elements?/rhetorical I wanted the Validate at a fixed position on the page. That's the only thing that worked for this newbie. Also, the page will scroll past it and it will not get in the way of the data. [which can be long]. Ethan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Placing a form on a page
On 05/05/2013 10:00 PM, Ethan Rosenberg, PhD wrote: On 05/06/2013 12:48 AM, tamouse mailing lists wrote: What you're asking about has nothing to do with PHP. You want help with HTML and CSS, and front-end design. You are absolutely correct. I meant to label the post as HTML - Placing a form on a page. My logic was that a PHP programmer will know HTML. Lest we forget, the name of the list is php-db, meaning it should be about database related topics in the php language. I don't know whose job it is to manage things like that (because the list seems to generally accept questions of any type), but it would be great if we tried to stay on-topic. I actually subscribed initially because I had some very specific questions about PDO and mysql's interaction. It seems I should probably unsubscribe since there are rarely topics of any interest to me, but I keep hoping things will turn around... -Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php