Computer Talk Discussions here pertain to mods, troubleshooting, and PC/console gaming

Form Script Issue.

Thread Tools
 
Search this Thread
 
Old 09-05-2005, 08:53 PM
  #1  
Registered User
Thread Starter
 
green91runner's Avatar
 
Join Date: Feb 2005
Location: thunder bay, ontario
Posts: 895
Likes: 0
Received 0 Likes on 0 Posts
Form Script Issue.

I'm currently working on a site for my aunt, where users can go and register for future information, then proceed to RSVP for other events, etc. Currently it will append the information to a database, linked together with an event management system I put together, anyway.. to the point.

I have opted to use Dadamail as the mailer, now I've thrown in the script..

echo '<form action="http://.../mail.cgi" name="subscribe" method="post">';
echo '<input type="hidden" name="thanks" value="http://.../index.php" />';
echo '<input type="hidden" name="list" value="mylist" />';
echo '<input type="hidden" name="email" id="email" value="'.$email.'" />';
echo '<input type="hidden" name="flavor" value="subscribe" />';
echo '</form>';

this is built into a current php script that sends the data to the mysql database, and then is auto sent with the simple javascript.

<script type="text/javascript" language="javascript">
document.subscribe.submit();
</script>

Now, the issue I'm having is, the dadamail applet is installed on a different server, and the 'confirmation page, is well.. quite ugly to say the least, and nothing like my site. I know I could go into the cgi script and edit it to make it look like I want, but I would much prefer if I could just get the form to auto-submit the data, then proceed to my old 'thank you' page, which I had setup and working before I added in the extra step of adding the email to the mailer list. As you can see the line in bold, is setup to re-direct ot back to my site, but it doesn't work, I've checked for a couple hours now, and I can't seem to find anything else that might work in this scenario.

If you would like working examples of what I have to help troubleshoot just let me know.

*Edit* Just to avoid the question and speed things up, yes.. this does send the data to the cgi script, properly, everything is fine with that aspect, just the stupid re-direct..

Last edited by green91runner; 09-05-2005 at 08:56 PM.
Old 09-07-2005, 05:44 PM
  #2  
Registered User
Thread Starter
 
green91runner's Avatar
 
Join Date: Feb 2005
Location: thunder bay, ontario
Posts: 895
Likes: 0
Received 0 Likes on 0 Posts
bump
Old 09-16-2005, 03:35 AM
  #3  
Registered User
 
ldivinag's Avatar
 
Join Date: Dec 2003
Location: N37 39* W122 3*
Posts: 1,526
Likes: 0
Received 0 Likes on 0 Posts
if you want to redirect, you must use PHP's HEADER function.

but remember, you cant send ANYTHING before the HEADER function or else it will fail and give you an error.

lemme know if you need more php help...

http://us2.php.net/manual/en/function.header.php
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
RDubya
86-95 Trucks & 4Runners
5
02-10-2017 04:46 PM
primordialbeast117
86-95 Trucks & 4Runners
11
12-19-2015 12:23 PM
Obmi
86-95 Trucks & 4Runners
51
10-04-2015 11:30 AM
matt1833
95.5-2004 Tacomas & 96-2002 4Runners
0
09-16-2015 07:11 AM
old87yota
86-95 Trucks & 4Runners
20
09-09-2015 12:39 PM



Quick Reply: Form Script Issue.



All times are GMT -8. The time now is 04:54 PM.