That worked perfect
Thanks!
User Profile
Collapse
-
Check Entry for blank spaces
I have a signup form that I want to validate and check to make sure the user has entered in a character field than contains no spaces.
Example
If MyColumn is entered in as: This is My Row
I want to send an error message back to the user that this entry cannot contain any spaces
In other words this entry should be: ThisisMyRow
Im sure this is probably very simple, your feedback is appreciated. -
Hello, I was able to get my problem resolved but one more thing:
I have a web page that looks like
www.mysite.com/page.php?user=fred
I was able to get the mod rewrite to display
www.mysite.com/user/fred
with this
Code:
RewriteRule ^user/([^/]+) /?$ /page.php?user=$ 1 [L]
I would ultimately like to display
www.mysite.com/fred
How can this...Leave a comment:
-
Mod Rewrite Problem
I am doing a mod rewrite on a page like the following:
www.mysite.com/user/jsmith/
executes the following:
www.mysite.com/result.php?user =jsmith
This works but the top of my page where my header is suppose to be does not display my header properly. I assume it is because it contains images that are in a folder called images. Do I need to create the htaccess file at all levels ?
How is this... -
I did get this working but one problem I am having is it pulls up the page ok but the header and footer do not look correct. Does the htaccess file have to exist in subfolders for files that are not in the root directory. How is this handled ?Leave a comment:
-
I instaled the mod rewrite feature for IIS. Now I am trying to use it and cannot get to work
.
Example:
I want the mod rewrite to execute
www.mysite.com/results.php?use r=20
when a user types in the following:
www.mysite.com/user20/
Is this the correct code to get this to work ?
Code(php):
RewriteEngine on
RewriteRule ^([.*])/$ results.php?use r=$1 [L]Leave a comment:
-
ronverdonk, one other question, from what you know about mod rewrites on Apache tell me if this is possible:
Say I have a page that brings up a users information. i.e.
www.mysite.com/results.php?use r=1
The mod rewrite can write it out like:
www.mysite.com/user1/
My question: Can I then use the url www.mysite.com/user1/ to access the page directly that give would give me the users information. In...Leave a comment:
-
I took a look at this and it seems it does require an Apache server. I am thinking about purchasing the mod rewrite license for the Windows Server environment. If anybody knows a way to do the rewrites outside of Apache let me know, it will save me a few bucks.Leave a comment:
-
Mod Rewrites
I tried using the mod Rewrite feature by turning on the rewrite engine and using it in the htaccess file. I contacted my web hosting company and they said windows users cannot use the htaccess file and I would have to purchase software in order to use mod rewrite. Does anyone know another way to do rewrites outside of the htaccess file ? -
Subdomains
Hello, I am looking to create a subdomain for each user on my website when they signup. So each user would have a link like this: www.user1.mysit e.com
Currently www.mysite.com? user=user1 would bring up the users page. I would like to accomplish this using a subdomain. What kind of script would I need on signup ? Also I have the .htaccess file on my server and it contains nothing. -
You should be able to just seperate the email addresses by commas.Leave a comment:
-
This code would go directly before your mail() function. As the last post states it may be different for your web server/php environment. If you continue to have problem I would suggest contacting your service provider if all else fails.Leave a comment:
-
I was told to insert this code right before the mail () function is executed.
Where 'user@domain.co m' should be a valid email address associated with the domain name for example (postmaster@mys ite.com)
//initialize mail function for web host
<? ini_set('sendma il_from', 'user@domain.co m' ); ?>
Hope this helps!Leave a comment:
-
I contacted my web hosting company and their is a piece of code they gave me that has to be inserted before the mail( ) function. Wish I knew this before. Thanks for your help ! It is working now.Leave a comment:
-
Tried what you gave me. Still no email. Any other suggestions are appreciated.Leave a comment:
-
Email Problem using PHP
I am attempting to send and email via my feedback form and nothing seems to go thru. I have tried sending to a yahoo account and a gmail account. I have changed a few things in my script several times and did receive a couple emails about 1 day later that just went into bulk. As of now I receive nothing. Can someone please take a look at my script and tell me what I am doing wrong. Also how do I prevent mails from going to bulk/spam? Could this be...
No activity results to display
Show More
Leave a comment: