Click to See Complete Forum and Search --> : php link problem


asrproductions
02-02-2006, 12:53 AM
What I need here is when this form is submittited I need it to go to "affiliate_main.php"
right now it inputs the id but reloads in the index page. What do I need to do to fix this problem?


</form>
<form action="affiliate_main.php" method="post" name="form1">
<input name="login_button" type="submit" id="login_button" value="login / cookie">
<input name="ccbillID2" type="text" size="8" maxlength="8">
</form>

thanks for your help

bathurst_guy
02-02-2006, 12:55 AM
according to that it does go to affiliate_main.php, maybe there is a header redirect on that page that is sending you to index

asrproductions
02-02-2006, 08:57 AM
I thought i checked that but I will look again thanks.

asrproductions
02-02-2006, 09:02 AM
This is the only other thing that I can see:

function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body bgcolor="#ffffff" leftmargin="150" topmargin="0">
<p align="left"><img src="index.gif" alt="" name="index" width="700" height="752" border="0" usemap="#indexMap">
<map name="indexMap">

does a reload do the same thing?

bokeh
02-02-2006, 10:20 AM
Use a proper url in the action attribute of your form.<form action="http://www.dom.com/path/affiliate_main.php" method="post">By the way that java script is for navigator 4... I have over 2 million lines in my apache log and that browser has never been the author of any of them.

asrproductions
02-02-2006, 11:11 AM
To be honest I'm not really sure what nav 4 is? Is it a problem?

chazzy
02-02-2006, 11:18 AM
an old version of netscape. it had issues when you would resize the page, items wouldn't move with the resize automatically (newer browsers do this for you). basically that javascript isn't the culprit.

could you maybe post what's in affiliate_main.php?

asrproductions
02-02-2006, 11:22 AM
I inserted my full url for the

<form action="http://www.dom.com/path/affiliate_main.php" method="post">

but it still logs the user in and refreshesin the index page instead of logging them in and taking them to the ../affiliate_main.php

asrproductions
02-02-2006, 11:31 AM
here is the affiliate_main.php for now,
now that I look at it, it apears that

<?php include "include.php"; ?>

is probaly my issue? Since I'm not using that page anymore. It was used as a redirect page or a login failure page that redirected of refreshed in the index page.


<?php include "include.php"; ?>
<html>
<head>

<body>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<h1>Sample Links Page</h1>
<p>Current CCBill ID: <?php ccbillid(); ?></p>
<h2>Sample link 1 (using ccbillid() function):</h2>
<p><a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=927988-0000&PA=<?php
ccbillid();
?>&BAN=0">link text</a></p>
</body>
</html>

chazzy
02-02-2006, 12:13 PM
this page doesn't have any form processing. did include.php have form processing?

asrproductions
02-02-2006, 07:26 PM
yes include.php had form processing.

Sheldon
02-02-2006, 08:27 PM
Well remove that crap Javascript, and post include.php USING VB TAGS

asrproductions
02-02-2006, 11:22 PM
What exactly are VB TAGS? Sorry for the simplicity of the question but I'm newer to this stuff.

By the way i got everything working properly now.