Jump to content

[SOLVED] Defieing Variables [Unsolved][Help]


chizley

Recommended Posts

Hey im just making this thing that receives from html, here's my code:

 

<?php 

$noa = $_POST['noa']; 
$idea = $_POST['idea'];

if($noa = Description){
$handle = fopen("descriptions.html", "a");
fwrite($handle, "<tr><td>
if(desc == ){<br />
_root.descr = (".$idea.");<br />
}</td></tr>");
fclose($handle);
$URL="http://h1.ripway.com/chizley1/ideamaker.html";
header ("Location: $URL");
}

if($noa = Name){
$handle2 = fopen("names.html", "a");
fwrite($handle2, "<tr><td>
if (name == ){<br />
_root.nam = (".$idea.");<br />
}</td></tr>");
fclose($handle2);
$URL="http://h1.ripway.com/chizley1/ideamaker.html";
header ("Location: $URL");
}
else{
$URL="http://h1.ripway.com/chizley1/error.html";
header ("Location: $URL");
}
?>

 

And bassicly, its sending it to both the html's (Description and Name),

 

Fast help please.

 

 

-Chizley

Link to comment
https://forums.phpfreaks.com/topic/68568-solved-defieing-variables-unsolvedhelp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.