Gossamer Forum
Home : Products : DBMan : Discussions :

Why doesn't this work?

Quote Reply
Why doesn't this work?
I've modified the login and signup pages (new account) like thus:

sub html_signup_form {
# --------------------------------------------------------
# This form is displayed for new users who want to create an account.
#
my $error = shift;

&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Step 1: General info.</title>
</head>
<body bgcolor="white" text="#000000" onLoad="document.form1.userid.focus()">
<form action="http://www.bahnhof.se/~chimbis/cgi-bin/formmail.cgi" method="post" name="form1">
<input type=hidden name="recipient" value="chimbis\@bahnhof.se">
<input type=hidden name="subject" value="Ratatosk: news and distro info">
<input type=hidden name="redirect" value="$db_script_url?db=$db_setup&next_signup_form=1">
<center>
<table border=1 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=500 align=center valign=top>
<tr><td colspan=2 bgcolor="navy">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>$html_title: Create Account</b>
</td></tr>
<tr><td>
<p><center><$font_title>
<b>Step 1: General info</b></font></center>

<$font>.

<table border=0>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>User ID:</b></FONT></td>
<td><input type="TEXT" name="userid" value=""></td></tr>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>Distribution:</b></FONT></td>
<td><input type="TEXT" name="distro" value=""></td></tr>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>News account? (Allow a day for it to be active):</b></FONT></td>
<td><input type="CHECKBOX" name="news" value="Yes!"></td></tr>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>News account? (Allow a day for it to be active):</b></FONT></td>
<td><input type="PASSWORD" name="pw" value=""></td></tr>
</table>
<p align=center><center><input type="SUBMIT" name="Confirm" value="Confirm"> <INPUT TYPE="SUBMIT" NAME="logoff" VALUE="Cancel"></center></p>
</td></tr>
</table>
</center>
</form>
</body>
</html>
|;
}

Now, the original html_signup_form is now next_signup_form.
Formmail sends me the mail nicely thankyou, but the redirect doesn't work I get back to this html_signup_form no matter what I put in redirect.

Mayhaps formmail and dbman doesn't want to cooperate on this account? Is there a better way?

Cheers,

C.

Subject Author Views Date
Thread Why doesn't this work? Chimbis 3255 Jul 7, 2000, 9:16 PM
Thread Re: Why doesn't this work?
JPDeni 3138 Jul 8, 2000, 12:22 AM
Thread Re: Why doesn't this work?
Chimbis 3126 Jul 8, 2000, 6:51 AM
Thread Re: Why doesn't this work?
JPDeni 3147 Jul 8, 2000, 5:53 PM
Post Re: Why doesn't this work?
Chimbis 3104 Jul 9, 2000, 10:17 AM