Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Pulling a NAME field from a form to a redirect page...

sheshisheshi Posts: 32Member
Hi All,

I think this is an easy question for you.... thanks in advance for any help.

I created a registration form on my website. All I'm trying to do is capture the first name field on my redirect page to say something like "Thank you 'First_Name' for registering....."

I started out using an ASP code however using my web hosting site, my registration form was created with the following code:

____________________________

<form action="http://eatontown411.com/ipw-cgi/forms.cgi"
method="post"
enctype="application/x-www-form-urlencoded" name="RegForm"
____________________________

So, it's using CGI scripts.... ASP is not available....
Any suggestions on what code I can use to pull the first name field on my redirect page?

Please be gentle, I have never used CGI scripts before... hope this makes sense. And thanks!

-Sheryl

Comments

  • JonathanJonathan Posts: 2,914Member
    : Any suggestions on what code I can use to pull the first name field
    : on my redirect page?
    :
    : Please be gentle, I have never used CGI scripts before... hope this
    : makes sense. And thanks!
    It all depends on how the CGI is written and what features it offers. It's hard to help without knowing what language the CGI script is written in or what it is; if you can provide any extra info that would be helpful.

    Jonathan


    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

  • sheshisheshi Posts: 32Member
    Ok, I'll give it a shot. Here is the code for the form:
    ___________________




























    First Name:



    Last Name:



    Street Address:



    City, State, Zip:



    Email:



    How did you hear about us?






    ______________________________________

    When a user hits the submit button, they get directed to another page on my site. I would like that redirect page to pull the first field on this form to say "Thank you 'First_Name' for registering..."


    Does that help you to answer my question at all?

    Thanks!
    -Sheryl
    ______________________________________


    : : Any suggestions on what code I can use to pull the first name field
    : : on my redirect page?
    : :
    : : Please be gentle, I have never used CGI scripts before... hope this
    : : makes sense. And thanks!
    : It all depends on how the CGI is written and what features it offers. It's hard to help without knowing what language the CGI script is written in or what it is; if you can provide any extra info that would be helpful.
    :
    : Jonathan
    :
    :
    : ###
    : for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    : (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    : /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
    :
    :

    [b][green]Sheshi :-D[/green][/b]

  • JonathanJonathan Posts: 2,914Member
    : Ok, I'll give it a shot. Here is the code for the form:
    : ....
    : ______________________________________
    :
    : When a user hits the submit button, they get directed to another
    : page on my site.
    OK, so where did you specify the page they get redirected to? Did you edit a .cgi file at some point?

    : I would like that redirect page to pull the first
    : field on this form to say "Thank you 'First_Name' for registering..."
    :
    : Does that help you to answer my question at all?
    No, I meant the script you're using to send the form - but I'm wondering if you're using something provided by your web host. If you did edit a .cgi file, as form mailing scripts are often not all that short, I suggest you email it to me rather that posting the entire content of the script on here. If it's one set up by your host, do you have the ability to install/run your own .cgi scripts?

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

  • infidelinfidel Posts: 2,900Member
    : Ok, I'll give it a shot. Here is the code for the form:
    : ___________________
    : <form action="http://eatontown411.com/ipw-cgi/forms.cgi"

    With a file named "forms.cgi" in what appears to be a fairly global path on the server, I would guess the sysadmins have placed all of the CGI available to users into this one file. A rather bold assumption, but it wouldn't be surprising if webpages are automatically generated.

    To put it bluntly, unless you can edit the above file, or create your own CGI script in a folder that the webserver will recognize as executable, you'll have to live with whatever functionality you are given by the server admins.


    [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]

  • sheshisheshi Posts: 32Member
    : : Ok, I'll give it a shot. Here is the code for the form:
    : : ....
    : : ______________________________________
    : :
    : : When a user hits the submit button, they get directed to another
    : : page on my site.
    : OK, so where did you specify the page they get redirected to? Did you edit a .cgi file at some point?
    :
    : : I would like that redirect page to pull the first
    : : field on this form to say "Thank you 'First_Name' for registering..."
    : :
    : : Does that help you to answer my question at all?
    : No, I meant the script you're using to send the form - but I'm wondering if you're using something provided by your web host. If you did edit a .cgi file, as form mailing scripts are often not all that short, I suggest you email it to me rather that posting the entire content of the script on here. If it's one set up by your host, do you have the ability to install/run your own .cgi scripts?
    :
    : Jonathan
    :
    ________________
    Hi Jonathan, thanks for the response. And yes, the file was set up by my host. I do have the ability to run my own scripts... what's a good next step?

    THANKS!!
    Sheryl
    [b][green]Sheshi :-D[/green][/b]

  • JonathanJonathan Posts: 2,914Member
    : Hi Jonathan, thanks for the response. And yes, the file was set up
    : by my host. I do have the ability to run my own scripts... what's a
    : good next step?
    Use this:-
    http://soupermail.sourceforge.net

    Give it a go yourself, post again if you get stuck. You can set up templates for output after the form is submitted and include fields, just as you want.

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.