PDA

View Full Version : Easy Coding - NEED HELP +REP+



Ed.
21-11-2007, 06:16 PM
Okay so far I have this html code:


<div id="content">
<div id="realcontent">
<div id="truecontent">
<!-- Begin Content -->
<script type="text/javascript">
function setimg (imagename, source){
if(document.images && document.images[imagename] && source != "!group") {
document.images[imagename].src = "RSHiLib/signatures/" + source + ".png";
}
}
</script><form method="get" action="make.php">
<div class="box">
<div class="header">
:: Make stat signature ::
</div>
<div class="body">
Habbo Name (UK only for now):
<input type="text" name="name" size="20" />
<br />
<br />
<div class="center">
Select type:
<select class="sigselect" name="image" onchange="setimg('sigimg', options[selectedIndex].value)">';
<option value="original">Original</option>

</select><br />
<br><br><center><img src="http://edhaw.freehostia.com/sig/profile.png?" alt="signature image" name="sigimg" /></center><br />
</div>
<br />
<input type="submit" value="Create Signature" />
</div>
</div>
</form>
<!-- End Content -->
</div>
</div>

I want it - when the person clicks submit to go to:

http://edhaw.freehostia.com/sig/habboProfile_uk.php?name=THERENAMETHATTHEYWROTE


Can someone code this for me so when they click submit it goes to this link?

Thanks

+REP+ to all help

lolwut
21-11-2007, 09:18 PM
If they haven't submitted the form, it'll show it.
Otherwise it redirects them to their signature.

<?php
if(!$_POST['make']){
?>
<div id="content">
<div id="realcontent">
<div id="truecontent">
<!-- Begin Content -->
<script type="text/javascript">
function setimg (imagename, source){
if(document.images && document.images[imagename] && source != "!group") {
document.images[imagename].src = "RSHiLib/signatures/" + source + ".png";
}
}
</script><form method="get" action="make.php">
<div class="box">
<div class="header">
:: Make stat signature ::
</div>
<div class="body">
Habbo Name (UK only for now):
<input type="text" name="name" size="20" />
<br />
<br />
<div class="center">
Select type:
<select class="sigselect" name="image" onchange="setimg('sigimg', options[selectedIndex].value)">';
<option value="original">Original</option>

</select><br />
<br><br><center><img src="http://edhaw.freehostia.com/sig/profile.png" alt="signature image" name="sigimg" /></center><br />
</div>
<br />
<input type="submit" name="make" value="Create Signature" />
</div>
</div>
</form>
<!-- End Content -->
</div>
</div>
<?php
}else{
$habboname = $_POST['name'];
header("Location: http://edhaw.freehostia.com/sig/habboProfile_uk.php?name=" . $habboname . "");
}
?>

Ed.
23-11-2007, 06:18 PM
Doesn't work

it just goes back to the freehostia homepage

lolwut
24-11-2007, 07:22 AM
Make sure the page is called make.php
OR: take the action="make.php" out of the <form> tag (:
Freehostia's homepage redirection probably means it's a 404.

Verrou
24-11-2007, 09:42 AM
redownload the status sig package from HabboRing it has a page in it.

Ed.
24-11-2007, 08:47 PM
i kno i tried but it is sig

iUnknown
26-11-2007, 09:05 PM
i kno i tried but it is sig

If you're having problems with the status sig form that comes with the habbo ring package then check that you've configured your .htaccess file properly :)

Want to hide these adverts? Register an account for free!