Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form processing question

    Is there a script that will allow multiple actions in a form action=" blah blah" statement?

    Thanks in advance.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can populate the action attribute this way:
    document.form_name.action="blah"

    With that you could populate it with a value based on some condition. Could you give us some more details on why you need this? Maybe we can give you a better answer.

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am using a cgi script written in Perl to process the form and send an email to myself with the form results. I am using a PHP script to write the results to a file on the server.

    I am not an experienced programmer. I used PerlBuilder to develop the CGI but the program does not allow for writing results to a file, only for sending an email. I had a friend write the PHP to create the results file on the server.

    So, I need to find a way to use both scripts in the action=" " statement of the form. I hope this is enough info for you to work with. Thank you.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The easiest solution would be to email and write to the database in the same script. I'm not familiar with PHP, but that should be child's play for someone who is.

    Hope this helps!
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

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