Jump to content

mat420

Members
  • Posts

    57
  • Joined

  • Last visited

    Never

Posts posted by mat420

  1. -sigh

    so not only did that not work

    but somehow in this process ive managed to break my once request call back form. haha

     

    fml.

    i put it back to the messy code btw because for some reason ur code always seems to be missing my PHP error ..label...thing. was afraid something else might be missing too.

    just fyi whatever ur browsing source codes with is leaving out code...idk if its cuz its php or what.

  2. i think i got rid of all the white space right after posting that lst msg here

    im not using an editor btw, notepad ++ and notepad/wordpad

    i can, make, no, sense, of this.

    i think the key factor here is that when i get rid of the "table" that the space goes away, that doesnt answer the question for u?

    ugh i really dont feel like learning how else i can align everything right just because of a stupid space.

    everything i try to do with this site has already become an hour long process per stupid feature/fix :/

     

    src="reqcallback.swf"
              bgcolor="#FFFFFF"
              quality="high"
              seamlesstabbing="false"
              allowscriptaccess="samedomain"
       wmode="transparent"
            >
              <noembed>
              </noembed>
            </embed>
          </object></h2>
    <div class="box_image_wrapper">
                    </div>
    <table style="width:250px">
    <form method="POST" action="<?php echo $SERVER['SCRIPT_URL']?>#form"> 
    
    <tbody><tr><td valign="top" style="width:115px;">
      <label for="name">Phone #:</label>
    </td>
    <td valign="top" style="width: 115px;">
      <input type="text" name="email1" id="email1" MAXLENGTH=12 size=16 value="<?php if (!empty($_POST['email1'])) { echo  $_POST['email1']; } ?>" />
    

  3. nah i said thanks cuz u tried and didnt realize the actual problem. looking at the picture u posted, im not sure u understand my problem, probably my fault for not putting a picture. the rectangle (aka empty space) is what im trying to get rid of. see picture attached pelase.

     

    [attachment deleted by admin]

  4. space isnt going anywhere.

    thats a whole table underneith where the space is that im talking about, u know i mean the space bteween request call back (flash) and phone# (textfield) right?

    thanks x999

     

    <table style="width:250px">
    <tbody><tr><td valign="top" style="width:145px;">
      <label for="Message">Enter letters below:</label>
    </td>
    <td valign="top"><input name="captcha2" size="8"/>
    </td> 
    </tr><br>
    <tr>
    <td valign="top"><span class="class2">
      <label for="Message"><a href="<?php echo captchaWavUrl()?>">Listen To This</a> / <a href="javascript:location.reload(true);">Refresh</a></label></span>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="text-align:center">
    <img style="vertical-align: middle" src="<?php echo captchaImgUrl()?>">  
    
      <input type="submit" name="send2" value="Submit"/>
    <font color="red"><b><?php
    if (isset($errors2)) {
    foreach ($errors2 as $error) {
    	echo("<p>$error<p>\n");
    }
    }
    ?></font></b></p>
    
    </td>
    </tr>
    </tbody>
    </table>
    </form>
    

  5. can you tell me what im missing please because i dont see it.

    i added width px 115 to every td. how is adjusting the tables td's width going to eliminate that gap btw please?

    <p><table width="250px" border="0">
    <form method="POST" action="<?php echo $SERVER['SCRIPT_URL']?>#form"> 
    
    </tr>
    <tr>
    <td valign="top" style="width: 115px;">
      <label for="name">Phone #:</label>
    </td>
    <td valign="top" style="width: 115px;">
      <input type="text" name="email1" id="email1" MAXLENGTH=12 size=16 value="<?php if (!empty($_POST['email1'])) { echo  $_POST['email1']; } ?>" />
    </td>
    </tr><br>
    <tr>
    <td valign="top" style="width: 115px;"> 
    <label for="phone">Verify Phone #:</label>
    </td>
    <td valign="top" style="width: 115px;">
    
      <input type="text" name="email2" id="email2" MAXLENGTH=12 size=16 value="<?php if (!empty($_POST['email2'])) { echo  $_POST['email2']; } ?>" />
    </td>
    </tr><br><br></table>

     

  6. <p><table width="250px" border="0">

    <form method="POST" action="<?php echo $SERVER['SCRIPT_URL']?>#form">

     

    </tr>

    <tr>

    <td valign="top" style="width: 115px;">

      <label for="name">Phone #:</label>

    </td>

    <td valign="top">

      <input type="text" name="email1" id="email1" MAXLENGTH=12 size=16 value="<?php if (!empty($_POST['email1'])) { echo  $_POST['email1']; } ?>" />

    </td>

    </tr><br>

    <tr>

    <td valign="top" style="width: 115px;">

    <label for="phone">Verify Phone #:</label>

    </td>

    <td valign="top">

  7. Is there a code I can put with each of these errors so that, on error, the page reloads back to the bottom of the page?  When you enter the wrong info, the page already reloads but it reloads to the top of the page.  People who didnt correctly information into the webpage may not see that they're receiving an error if it doesnt scroll back down.

    I attempted to put the error at the to of the page but I couldnt find a good spot. I thought about doing an error message box but I'm not sure thats the best method

    Anyway heres the code, thanks a lot.

     

    
    <?php
    if ($_POST['send']) {
    $errors = array();
    if ($_POST['captcha'] != $_SESSION['captchacode']) {
    	$errors[] = "You didn't enter the correct letters!";
    
    
    <-------------ID LIKE TO PUT A CODE HERE AND
    }
    if (empty($_POST['email']))  {
    	$errors[] = "Please enter an e-mail address"; 
    
    
    <-----------------HERE TO MAKE THE PAGE GO TO THE BOTTOM WHEN IT REFRESHED (IT REFRESHES UPON EVERY IMPROPERLY FILLED OUT FORM
    
    
    } 
    else if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email'])) 
    { 
    $errors[] = 'Please enter a VALID e-mail address'; 
    } 
    if (!count($errors)) {
    	// IMPORTANT: If you don't call this the 
    	// user will keep getting the SAME code!
    	captchaDone();
    
    

×
×
  • 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.