Results 1 to 10 of 10

Thread: Webform help

  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Webform help

    im using a webform but there is one problem if i write text in text field and press ENTER button then the SEND IS UNSUCCESSFUL and if i press on Submit button then the send is Successful.. any solution?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Very vague. Post actual details so we can help, and especially a link to your page will help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    see at left bottom EMAIL UPDATES
    Last edited by ff123; 05-09-2008 at 08:41 PM.

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by ff123 View Post
    im using a webform but there is one problem if i write text in text field and press ENTER button then the SEND IS UNSUCCESSFUL and if i press on Submit button then the send is Successful.. any solution?
    Because you're not using a valid HTML form. You're using javascript to submit the form.

    Code:
    onClick="return checkmail(this.form.mail)"
    That will only work onClick (i.e. when you click on it).

    You have a ton of other problems on your page though. You should look into using CSS for your layout and making sure that your HTML is valid.

  5. #5
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    ahan ok thanks

  6. #6
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    one more problem im facing i changed the submit button to image and now the form is not sending email here is the php code that im using in php page any solution?
    Code:
    <?php 
    if(isset($_POST['submit'])) { 
    $to = "email here"; 
    $subject = "Email Subscription";  
    $mail = $_POST['mail']; 
      
    $body = "E-Mail: $mail"; 
      
    echo "Thank you for subscribing with You will be redirected to Home Page in 5 Seconds!"; 
    mail($to, $subject, $body); 
    } else { 
    echo "blarg!"; 
    } 
    ?>

  7. #7
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    help..........

  8. #8
    Join Date
    Jul 2007
    Location
    England
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    I've just tried it and it works fine both by hitting enter, and by clicking the button.

  9. #9
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by ff123 View Post
    one more problem im facing i changed the submit button to image and now the form is not sending email here is the php code that im using in php page any solution?
    Code:
    <?php 
    if(isset($_POST['submit'])) { 
    $to = "email here"; 
    $subject = "Email Subscription";  
    $mail = $_POST['mail']; 
      
    $body = "E-Mail: $mail"; 
      
    echo "Thank you for subscribing with You will be redirected to Home Page in 5 Seconds!"; 
    mail($to, $subject, $body); 
    } else { 
    echo "blarg!"; 
    } 
    ?>
    Did you name it submit?

    HTML Code:
    <input type="image" name="submit" src="image.jpg" />

  10. #10
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    @ MrRSMan : dear you tried Contact form i was talking about the form on main page..

    @ Medyman : i fixed that problem. anyway thanks...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •