kamriyas Posted July 23, 2011 Share Posted July 23, 2011 hello,i need a help in creating a form. i have something like this :Enter your name : -------Submiton the next line, the output should beYour referral URL is : http://sitename.com/?referral=namecan anyone help me please!sorry im not a programmer. i just need this help from you people.thanks alot Link to comment Share on other sites More sharing options...
chasethemetal Posted July 23, 2011 Share Posted July 23, 2011 <form action="" method="post"><input type="text" name="name" /><br /><input type="submit" value="Submit" name="submit" /></form><?if(isset($_REQUEST['submit'])) {$name = $_POST['name'];echo '<br />';echo 'http://sitename.com/?referral=$name';}?> Link to comment Share on other sites More sharing options...
kamriyas Posted July 25, 2011 Author Share Posted July 25, 2011 thank you so much! it works perfect <form action="" method="post"><input type="text" name="name" /><br /><input type="submit" value="Submit" name="submit" /></form><?if(isset($_REQUEST['submit'])) {$name = $_POST['name'];echo '<br />';echo 'http://sitename.com/?referral=$name';}?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.