NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP Variable Dispatch[Help]

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 07-15-2004, 12:05 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jul 2004
Posts: 2
Immortal is an unknown quantity at this point
 



Notice PHP Variable Dispatch[Help]


Alright well my PHP code is this:


here is the makefile.html:


<body>

<form method="post" action="finishfile.php">

<center>News Update</center>

File name: &nbsp; <input name="filename" type="text" size="49">
<br>
Name: &nbsp; <textarea name="name" type="text" size="30"></textarea>
<br>
Date: &nbsp; <textarea name="date" type="text" size="8"></textarea>
<br>
Content: &nbsp; <textarea name="content" type="text" size="50"></textarea>


<input type="submit" name="Submit" value="Submit">
</form>


</body>


and here is the finish file.php:

PHP Code:
<?php

$file 
$_POST["filename"];
$name $_POST["name"];
$date $_POST["date"];
$content $_POST["content"];
????: NamePros.com http://www.namepros.com/programming/38863-php-variable-dispatch-help.html
$whole_string '<br>' '<br>' $name '<br>' $date '<br>' $content;
$open fopen($file'a');
fwrite($open$whole_string);
fclose($open);
echo 
'<table width="100%" border="1" cellspacing="0" cellpadding="1">
   <tr>
     <td bgcolor="#CCCCCC">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><strong>INFORMATION</strong></font></div></td>
   </tr>
<tr>
     <td><font color="#00FF00" face="Verdana, Arial, Helvetica, sans-serif">FILE WAS MADE SUCCESSFULLY</font></td>
   </tr>'
;
?>
Alright, but when the files are written to the main.html file how can i make the variables be placed where i want them in the main.html file?
????: NamePros.com http://www.namepros.com/showthread.php?t=38863

?
__________________
-Immortal-
Last edited by Immortal; 07-15-2004 at 12:14 AM.
Immortal is offline  
Old 07-15-2004, 10:10 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
sorry you need to explain your question a bit better
adam_uk is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:25 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger