Advanced Search

Search:

Type: Posts; User: ?foru; Keyword(s):

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,466

    Resolved Thank you for the reply. I made the mistake of...

    Thank you for the reply. I made the mistake of adding the redirect code to MailHandler.php, but I needed to add it to payment.js which uses ajax to check the form on the spot. I searched through...
  2. As always traq never fails to explain in depth. ...

    As always traq never fails to explain in depth. He will steer you in the right direction. You'll always want to check if the form is submitted from your form page (unless you do this all in the...
  3. Replies
    2
    Views
    1,466

    Resolved Redirect after form submit

    I have a jquery form which displays the following above my form after the form is successfully processed.

    <div class="success">Thank you. Membership form submitted!</strong> </div>
    and is only...
  4. Replies
    7
    Views
    1,026

    Resolved Resolved

    You're right, and your explanation makes since...thank you! I was able to track down the parse error in the code posted in #4, and the error was throwing due to a missing } prior to the first else. ...
  5. Replies
    7
    Views
    1,026

    Resolved Thank you for helping to think out the code which...

    Thank you for helping to think out the code which helped to visualize it as code. I was getting ELSE parse errors, but after some thought I was able to set the default with the following. I...
  6. Thread: PHP Contact Form

    by ?foru
    Replies
    1
    Views
    469

    Try to set a value for the friend's email as POST...

    Try to set a value for the friend's email as POST since you use it down in your send action...
    $_POST["email"]

    <label for='contact-email'>*Friends Email:</label>
    <input type='text'...
  7. Thread: PHP Error

    by ?foru
    Replies
    8
    Views
    771

    Here is a list of available timezones if that...

    Here is a list of available timezones if that helps: http://www.php.net/manual/en/timezones.php
  8. Replies
    7
    Views
    1,026

    Resolved Thank you. Sorry for the delayed reply, that...

    Thank you. Sorry for the delayed reply, that worked! The only thing left I need to do is set a default "home" page if no "page" is specified.

    IE. domain.com/ or domain.com/index.php should by...
  9. Replies
    7
    Views
    1,026

    Resolved switch statement with no page found option

    All,

    I have been running this for quite some time and it's solid, but I want to be able to utilize a page not found option.


    <?php
    switch($_GET['page']){
    case "contact":
    $displaypage =...
  10. Replies
    17
    Views
    3,168

    I found some were having issues with ajax Get in...

    I found some were having issues with ajax Get in IE10, and there were mentions of Windows 8 but it seemed to be regarding specific calls and not ajax itself.
  11. Replies
    17
    Views
    3,168

    The hidden value "security" in the form and ...

    The hidden value "security" in the form and
    ".security":{rx:new RegExp('^' + $('[name="security"]',th).val() + '$'),target:'input'}, worked great to only accept the correct answer as you mentioned,...
  12. Replies
    17
    Views
    3,168

    Thank you very much for your help jscheuer1! I...

    Thank you very much for your help jscheuer1! I was almost there with the concept of the code on the form and handler, but I knew I wasn't making the link in the ajax.

    It isn't a big deal, but...
  13. Replies
    17
    Views
    3,168

    MailHandler.php (this is where I'm only getting...

    MailHandler.php (this is where I'm only getting the mail to the default email address)

    <?php session_start();
    echo $_SESSION['user']; echo "$user";

    // redirect back to contact form if...
  14. Replies
    17
    Views
    3,168

    After plugging in...

    After plugging in index.php?page=contact&user=User+One into the address bar I can view the source and "User One" is set as the value like
    <input type="hidden" name="user" value="User One">

    This...
  15. Replies
    17
    Views
    3,168

    @jscheuer1 - Yes, the form does have a .php...

    @jscheuer1 - Yes, the form does have a .php extension and I used PHP to extract the user variable from the URL to insert it into the hidden field. Using the + certainly does help. To make it easier...
  16. Replies
    17
    Views
    3,168

    My apologies for not clarifying. The form has...

    My apologies for not clarifying. The form has PHP coding in it, and the input is

    <input type="hidden" name="user" value="<? echo "$getuser"; ?>">
    and
    <?php $getuser = $_GET['user']; ?>get's...
  17. Replies
    17
    Views
    3,168

    Contact form processor not getting value

    I generally use a self submitting form and processor all in one to keep things clean, but the project I'm working on uses an HTML form that POSTS to a separate PHP script that handles the mailing.
    ...
  18. Replies
    11
    Views
    3,291

    Resolved Normally when I "include" a file it contains...

    Normally when I "include" a file it contains variables that my main page is using so it seems a little odd that your include file is just echoing the value. Sometimes scripts will be built to...
  19. Replies
    5
    Views
    1,939

    In the current file you're editing instead of......

    In the current file you're editing instead of...


    $lang[2]='<img src="forumheader.jpg">.';

    have you tried


    $lang[2]='<a href="http://www.swordofpower.org/forums/pics/forumheader.jpg">';
  20. Replies
    11
    Views
    3,291

    Resolved When I used the code I was using query strings...

    When I used the code I was using query strings like you posted index.php?page=demoMoulding I attempted several different code changes without the query strings and I couldn't get anything to work...
  21. Replies
    11
    Views
    3,291

    Resolved traq, If I'm reading this right, that would...

    traq,


    If I'm reading this right, that would be a little more work for you to change items in page1 page2 page3 and so on rather than making all your page changes in one single file ...
  22. Replies
    11
    Views
    3,291

    Resolved I just recently did this on a project I was...

    I just recently did this on a project I was working on. I used a database to pull the info, but I modified the code for static content.

    This will be your htmlhead.php page (add additional entries...
  23. Resolved I was able to get this working with ...

    I was able to get this working with


    $carrierto = array_keys($carriers,$_POST['carrier']); $carrierto to avoid confusion with the array value $carrier like...


    ...
    foreach($carriers as...
  24. Replies
    1
    Views
    1,190

    the variable names are the same as the POST value...

    the variable names are the same as the POST value such as this...

    $name = $_POST['name'];
    $email = $_POST['email'];

    Instead of

    $Fname = $_POST['First Name'];
    $Lname = $_POST['Last Name'];
  25. Resolved Turning part of an array into a variable to output

    forum_amnesiac posted some code in another thread which is very similar to mine but I started a new thread as to not interfere with the other thread question.

    This also creates a dynamic dropdown...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4