/    Sign up×
Community /Pin to ProfileBookmark

Submit – Display – Redirect

As you can see from my code this form takes feedback from the user, posts the contents then displays a message to the user…

a) can this message be formatted I tried to do it with:

[CODE]
<INPUT TYPE=”hidden” style=”font-size:10px;font-family:tahoma;color:#db2c3b;”name=”SUCCESS-RESPONSE” value=”Thank you for your feedback. It has been sent. You can now continue using the support tool.”> [/CODE]

but this seemed to have no effect ?

b) after this message has been displayed can the user then be redirected back to another page after x amount of seconds ?

[CODE]<title>Feedback Form</title>
</head>

<body bgcolor=”#eaeaea” topmargin=”0″ leftmargin=”0″ bgcolor=”white”>

<script language=”javascript”></SCRIPT>

<FORM METHOD=”POST” ACTION=”http://home.btconnect.com/cgi-bin/mailto/[email protected]” >

<div align=”center”><table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%”></div>

<div><table width=”815″ bgcolor=”#e0e0e0″ border=”1″ cellpadding=”5″ bordercolor=”#000000″ align=”center”>
<tr>
<td>
<font color=”#db2c3b”><b>Support Tool Feedback</b></font><br><br>

<div align=”center”><center><table border=”0″ width=”100%”>
<tr>
<td align=”center”><div align=”center”><center><table border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td>Name:</td>
<td>
<input type=”text” size=”35″ name=”Advisor_Name”
tabindex=”1″
value=””></td>
</tr>

<tr>

<td>
Subject:</td>
<td ><font size=”2″ face=”tahoma”>
<input type=”text” size=”35″ name=”Subject” tabindex=”6″></font></td>
</tr>

<tr>
<td >
Feedback:</td>
<td ><textarea name=”Feedback” rows=”10″ cols=”30″ tabindex=”8″></textarea></td>
</tr>
<tr>

<td >&nbsp;</td>
</tr>
</table>
</center></div></td>
</tr>

</table>

<div align = “center”
<td >
<input type=”submit” value=”Submit Feedback” tabindex=”9″></td>
</div>

</center></div>
</td>
</tr>
</table>

[B]<INPUT TYPE=”hidden” name=”SUCCESS-RESPONSE” value=”Thank you for your feedback. It has been sent. You can now continue using the support tool.”>[/B]

</form>[/CODE]

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jun 22.2006 — You can do that with a meta http-equiv (refresh) tag on the first response page.
Copy linkTweet thisAlerts:
@smudgerauthorJun 24.2006 — Ok so I've finally got round to this bit after completing the search engine code, I've been looking for examples on the web and they all seem to come in the format of:
[CODE]
<META HTTP-EQUIV="refresh" content="2;URL=http://www.yoursite.com/newpage.htm"> [/CODE]


which is great if you want to redirect on page load (maybe I'm Missing Something ?) but as I pointed out in my original post the redirect shouldn't occur until after the form data has been submitted and the line of code in bold at the end of the form has been executed:

[CODE]<FORM METHOD="POST" ACTION="http://home.btconnect.com/cgi-bin/mailto/[email protected]" >


<div align="center"><table border="0" cellpadding="0" cellspacing="0" width="100%"></div>


<div><table width="815" bgcolor="#e0e0e0" border="1" cellpadding="5" bordercolor="#000000" align="center">
<tr>
<td>
<font color="#db2c3b"><b>Support Tool Feedback</b></font><br><br>

<div align="center"><center><table border="0" width="100%">
<tr>
<td align="center"><div align="center"><center><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Name:</td>
<td>
<input type="text" size="35" name="Advisor_Name"
tabindex="1"
value=""></td>
</tr>


<tr>

<td>
Subject:</td>
<td ><font size="2" face="tahoma">
<input type="text" size="35" name="Subject" tabindex="6"></font></td>
</tr>

<tr>
<td >
Feedback:</td>
<td ><textarea name="Feedback" rows="10" cols="30" tabindex="8"></textarea></td>
</tr>
<tr>



<td >&nbsp;</td>
</tr>
</table>
</center></div></td>
</tr>

</table>

<div align = "center"
<td >
<input type="submit" value="Submit Feedback" tabindex="9"></td>
</div>

</center></div>
</td>
</tr>
</table>




[B]<INPUT TYPE="hidden" name="SUCCESS-RESPONSE" value="Thank you for your feedback. It has been sent. You can now continue using the support tool.">[/B]

</form>[/CODE]


also does anyone know how the out put of this statement can be formated ?


[CODE][B]<INPUT TYPE="hidden" name="SUCCESS-RESPONSE" value="Thank you for your feedback. It has been sent. You can now continue using the support tool.">[/B][/CODE]

thanks in advance
Copy linkTweet thisAlerts:
@ray326Jun 26.2006 — You don't put it on the form page you put it on the form reply page.
Copy linkTweet thisAlerts:
@DivyakediaJun 26.2006 — Try using this code:

<script language="javascript">

a=setTimeout('popup()',10000);

function popup(){

window.location='index.html'

}

</script>

After the form is submitted, the user reaches the 'thanks.htm' or whatever page and on that page U rite this script which redirects the user to, in this case 'index.html' page. Hope this helps.
×

Success!

Help @smudger spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...