www.webdeveloper.com

Search:

Type: Posts; User: Lazarix

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    1,500

    I'd really appreciate anyone's help at this...

    I'd really appreciate anyone's help at this point! i'm really stuck with this 1 and 0 problem :(
  2. Replies
    24
    Views
    1,500

    When I run that code it says: Variable isset:...

    When I run that code it says:

    Variable isset: 1Variable not isset:
  3. Replies
    24
    Views
    1,500

    If anyone would be able to take a look at the...

    If anyone would be able to take a look at the code and help me in figuring out why it seems to only insert 1's and 0's into the mysql server, i would be forever grateful.
    I'm tearing my hair out at...
  4. Replies
    24
    Views
    1,500

    DO you think that's what's causing it to insert...

    DO you think that's what's causing it to insert 1's and 0's instead of data from the form?
  5. Replies
    24
    Views
    1,500

    Don't suppose you have any ideas Derokorian?

    Don't suppose you have any ideas Derokorian?
  6. Replies
    24
    Views
    1,500

    This last one is bugging the hell out of me :( I...

    This last one is bugging the hell out of me :(
    I can't figure out why it's posting 1's and 0's...
  7. Replies
    24
    Views
    1,500

    If I use the function NOW() then it returns: ...

    If I use the function NOW() then it returns:


    I'm not concerned about that at the moment.

    After adding in the question mark at the end (and removing one preceeding the INET_ATON), it now...
  8. Replies
    24
    Views
    1,500

    Part 2: //check that the required fields are...

    Part 2:


    //check that the required fields are not empty
    if ($EmployeeName == '' || $EmployeeRef == '' || $DeclarationCheck == '')
    {
    $error = 'ERROR: Please fill in all required fields!';...
  9. Replies
    24
    Views
    1,500

    Thanks very much for the input Derokorian. ...

    Thanks very much for the input Derokorian.

    I've refined (or is it bloated?) the code now to the below and fixed other errors that I spotted along the way.

    The only issue i'm facing at the...
  10. Replies
    24
    Views
    1,500

    So, the only way to do it is to have 85 different...

    So, the only way to do it is to have 85 different isset statements?
  11. Replies
    24
    Views
    1,500

    Thanks very much NogDog, I think i'm starting to...

    Thanks very much NogDog, I think i'm starting to get somewhere now!
    I've commented out the mysql_real_escape_string piece and now it's progressing past that error.

    The only thing that I don't...
  12. Replies
    24
    Views
    1,500

    Yep, you're dead right :) So, now it's...

    Yep, you're dead right :)

    So, now it's complaining about:


    $_POST = array_map('mysql_real_escape_string',$_POST);

    on line 22
    the error is shown as:
  13. Replies
    24
    Views
    1,500

    Well, clearly i'm doing something wrong because...

    Well,
    clearly i'm doing something wrong because when I press submit, i get the following as the result:
  14. Replies
    24
    Views
    1,500

    part 2: //check that the required fields...

    part 2:



    //check that the required fields are not empty
    if ($EmployeeName == '' || $EmployeeRef == '' || $DeclarationCheck == '')
    {
    $error = 'ERROR: Please fill in all required fields!';...
  15. Replies
    24
    Views
    1,500

    Thanks guys. I've taken your advice and used...

    Thanks guys.
    I've taken your advice and used mysqli instead of the (previously unbeknownst to me) depreciated mysql_connect() method.

    Below is my new code.
    Is this any good?
    (splitting it into...
  16. Replies
    24
    Views
    1,500

    Can't find my stupid mistake!

    Hi all,
    I'm trying to create a form that will insert into a mysql database.
    The code for the php file is below:



    <?

    //set database connection parameters
    $hostname = "127.0.0.1:3307"; //...
  17. Replies
    27
    Views
    25,382

    After I add error_reporting(E_ALL ^ E_NOTICE); to...

    After I add error_reporting(E_ALL ^ E_NOTICE); to the php file, the error messages stop being logged to the log file and the front end doesn't display any errors either (apart from the if else error...
  18. Replies
    27
    Views
    25,382

    The error is the same as before: [Thu Oct 11...

    The error is the same as before:

    [Thu Oct 11 22:59:09 2012] [error] [client x.x.x.x] PHP Notice: Undefined variable: SumMiles in /home/test/public_html/Beta/Scripts/formsubmit.php on line 46,...
  19. Replies
    27
    Views
    25,382

    I posted two more replies to the thread but they...

    I posted two more replies to the thread but they are waiting for moderator approval before being posted for some reason.
    Apologies that they may appear out of order!
  20. Replies
    27
    Views
    25,382

    Part 3 of 3

    Part 3 of 3


    <!--<form name="sumform">-->
    <table>
    <tr>
    <td></td>
    <td...
  21. Replies
    27
    Views
    25,382

    Part 2 of 3

    Part 2 of 3



    <form class="sigPad" method="post" action="Scripts/tjwformsubmit.php">
    <table width="500" cellpadding="3">
    <td colspan="6">
    ...
  22. Replies
    27
    Views
    25,382

    The html for the form is below, which includes...

    The html for the form is below, which includes the calculation code for how to come up with those fields.
    The sum values appear on the site when you type them live, but aren't posted for some...
  23. Replies
    27
    Views
    25,382

    Thanks for the replies guys. I've added...

    Thanks for the replies guys.
    I've added error_reporting(E_ALL ^ E_NOTICE); into the php file but it now doesn't report anything in the log file (but still errors on the front end) so i took it out...
  24. Replies
    27
    Views
    25,382

    Hi guys, Thank you SO much for providing code...

    Hi guys,
    Thank you SO much for providing code like this, i'm successfully using it in a form i'm creating.
    When i'm going through the form and inserting values into text boxes, the total...
Results 1 to 24 of 24
HTML5 Development Center



Recent Articles