LuxuryHouses Posted August 21, 2008 Share Posted August 21, 2008 I have a registration form which new users fill in some basic iinformation and when it is submitted the appropriate tables in mysql database are updated. Is there a way for when the user enters their webpage url to append to the beginning and end of what they submit either in the form itself, the php page it calls on or mysql? For example when they enter http://www.myhomepage.com I would like it pushed to the table as <a href="http://www.myhomepage.com"> Link to comment https://forums.phpfreaks.com/topic/120707-need-some-help-with-forms-and-mysql/ Share on other sites More sharing options...
abdfahim Posted August 21, 2008 Share Posted August 21, 2008 pushed to the table as ???? Please complete the sentence. Link to comment https://forums.phpfreaks.com/topic/120707-need-some-help-with-forms-and-mysql/#findComment-621962 Share on other sites More sharing options...
LuxuryHouses Posted August 21, 2008 Author Share Posted August 21, 2008 Looks like the forum cut it off so I will put some carriage returns in and see if it posts <a href=" http:// www. myhomepage. com"> Link to comment https://forums.phpfreaks.com/topic/120707-need-some-help-with-forms-and-mysql/#findComment-621967 Share on other sites More sharing options...
abdfahim Posted August 21, 2008 Share Posted August 21, 2008 its easy. then you should pushed into the table as $url=$_POST['url']; $url="<a href=\"".$url."\">" But if I were you, I would store the url as it is in the table and when printing, I would add those HREF stuff. Link to comment https://forums.phpfreaks.com/topic/120707-need-some-help-with-forms-and-mysql/#findComment-622159 Share on other sites More sharing options...
LuxuryHouses Posted August 21, 2008 Author Share Posted August 21, 2008 Did not work. This is what I have now: $node->push("text","www",$_POST['www']); when I added this, I get an error when accessing the form $url=$_POST['www']; $url="<a href=\"".$www."\">" Link to comment https://forums.phpfreaks.com/topic/120707-need-some-help-with-forms-and-mysql/#findComment-622410 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.